PHP bindings for the xPL4Linux xPL Library
WARNING: This is an in-development library, it will not be bug free and fully featured. Please email simon at ateb dot co dot uk if you have any problems, suggestions, questions or words of support.
Testing: Build with gcc version 4.6.3 (Debian 4.6.3-14+rpi1) Built against PHP 5.4.4
Prerequisites: You must have git, git-core, swig2.0, php5-dev, php5-cli and php5-common installed as well as the usual build tools gcc etc.
Get/setup repo:
git clone https://github.com/JakDaniels/php-xPL
cd php-xPL
Build & install with:
./build.sh
Check that the module loads:
php -m
Look for the 'xPL' module in the list and that there are no errors (missing symbols etc at the top of the list).
The build script does the following things:
1) Downloads the xPL library (first time) from http://xpl4java.org/xPL4Linux/
2) Builds and Installs the xPL library, and makes the examples and the xPL-Hub (in xPLLib/examples)
3) Creates an interface file for SWIG using the xPL library header files
4) Uses SWIG to create the PHP module source code and include files
5) Builds the PHP module source and then installs the shared module library (using sudo)