- GDAL-dev (>v2.0)
- PHPCPP (v2.1.4)
- PHP7.0-dev
sudo apt install libgdal-dev
sudo apt install php7.0-dev
- If the package isn't available in your distro, take a look here
- PHPCPP can be found here
- Requirements
- PHP7.0
- Build PHP-CPP
- Clone this repository
cd php7-gdal && make
- If all goes well, you should then be able to do
sh deploy.sh
which will copy your extension to the PHP extension directory
- In lieu of PHPUnit, I've included a small test script which will do for now.
make test
- View
examples/example.php
in the repo.
- gdal_info
- gdal_translate