-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the php-alpm wiki!
This wiki is to keep together complete (hopefully) documentation on how to use this php extension. This extension allows you to examine a pacman package within PHP and will allow complete package management from PHP in the future.
A little warning for those using this, in the 0.x series, there is no guarentee of backwards compatibility. Once it hits 1.x, this will be considered. For now, upgrade at your own risk.
If you need to contact me (Mark Weiman) for development or help, here are a few places you can.
- Email: [email protected]
- Telegram: https://telegram.me/markzz
- Twitter: @markzz989
The easiest way to do so is to use the source package here. Just extract it and run makepkg
on the PKGBUILD.
This will only build if you have both:
- php
>=7.0
- libalpm
>=10.0
(from pacman>=5.0
)
If you want to build from git (using Arch Linux):
$ git clone https://github.com/markzz/php-alpm.git
$ cd php-alpm
$ phpize
$ ./configure --with-php-config=/usr/bin/php-config --enable-alpm
$ make
# make install
If you wish to contribute, just be sure to read the CONTRIBUTING.md
file for guides to how the code should be formatted. Also, when submitting commits, please sign-off on them if possible (using git commit -s
).
*rewrite documentation to replace deprecated functions