[![build status] (https://drone.osgeo.kbt.io/api/badges/geos/php-geos/status.svg?branch=master)] (https://drone.osgeo.kbt.io/geos/php-geos?branch=master)
The code in this directory provides a PHP module to make use of functionalities of the [GEOS library] (http://geos.osgeo.org).
The bindings are linked to the C-API, for betters stability.
You need:
-
PHP development files ( often found in packages named something like 'php5-dev' )
-
GEOS development files ( often found in packages named something like 'libgeos-dev' )
git clone https://git.osgeo.org/gogs/geos/php-geos.git
cd php-geos
./autogen.sh
./configure
make # generates modules/geos.so
Automated testing is executed on 'make check'.
You'll need phpunit installed for this to work. To install:
pear install --force --alldeps phpunit/phpunit
As root (or owner with write access to the directory returned by php-config --extension-dir), run:
make install
... TODO ... (reference some automatically built doc?)