php-coord / php-coord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points.
Fund package maintenance!
dvdoug
Installs: 256 855
Dependents: 6
Suggesters: 0
Security: 0
Stars: 69
Watchers: 8
Forks: 14
Open Issues: 1
Requires
- php: ^7.3||^8.0
- symfony/polyfill-php80: ^1.18
Requires (Dev)
- ext-sqlite3: *
- friendsofphp/php-cs-fixer: ^2.18.0
- gasparesganga/php-shapefile: ^3.4
- nikic/php-parser: ^4.10
- phpunit/phpunit: ^9.5.0
README
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points.
6000+ different coordinate systems are supported, covering the entire globe. Common systems supported include:
- WGS84 (GPS)
- OSGB36 (Great Britain)
- NAD27 and NAD83 (North America)
- UTM (Universal Transverse Mercator)
- ED50 and ETRS89 (Europe)
- GDA94 and GDA2020 (Australia)
- NZGD49 and NZGD2000 (New Zealand)
Documentation
Documentation and usage examples are available here.
Installation
If you use Composer, just add php-coord/php-coord
to your project's composer.json
file:
composer require php-coord/php-coord
Otherwise, the library is PSR-4 compliant, so will work with the autoloader of your choice.