Skip to content
Mark Weiman edited this page Dec 30, 2017 · 11 revisions

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.

Building and Installing

The easiest way to do so is to use the source package here. Just clone it and run makepkg on the PKGBUILD.

This will only build if you have both:

  1. php >=5.3 (5.4+ is tested)
  2. 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

Contributing

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).

TODO

*rewrite documentation to replace deprecated functions

Clone this wiki locally