PHPGeodetic is a library written in PHP, providing a set of classes for the handling of Geodetic Latitude/Longitude, ECEF and UTM coordinates, and conversions between datums
OTHER License
PHPGeodetic is a library written in PHP, providing a set of classes for the handling Geodetic of Latitude/Longitude and ECEF coordinates, and conversions between datums
This library provides methods for:
We recommend installing this package with Composer.
In your project root folder, execute
composer require markbaker/phpgeodetic:dev-master
You should now have the files composer.json
and composer.lock
as well as the directory vendor
in your project directory.
You can then require the Composer autoloader from your code
require 'vendor/autoload.php';
Or, if you already have a composer.json file, then require this package in that file
"require": {
"markbaker/phpgeodetic": "dev-master"
}
and update composer.
composer update
Although we strongly recommend using Composer, we also provide a Phar archive builder that will create a Phar file containing all of the library code.
The phar builder script is in the repository root folder, and can be run using
php buildPhar.php
To use the archive, just require it from your script:
require 'Geodetic.phar';
If you want to run the code without using composer's autoloader, and don't want to build the phar, then required the bootstrap.php
file from the repository in your code, and this will enable the autoloader for the library.
require 'bootstrap.php';
Fork this library!
PHPGeodetic is licensed under LGPL (GNU LESSER GENERAL PUBLIC LICENSE)