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: 549 712
Dependents: 14
Suggesters: 0
Security: 0
Stars: 100
Watchers: 11
Forks: 16
Open Issues: 2
Requires
- php: ^8.0
- composer-runtime-api: ^2.1
- ext-zip: *
- composer/pcre: ^3.1
- opis/json-schema: ^2.3
Requires (Dev)
- ext-json: *
- ext-sqlite3: *
- friendsofphp/php-cs-fixer: ^3.41
- nikic/php-parser: ^5.0
- php-coord/datapack-africa: dev-master
- php-coord/datapack-antarctic: dev-master
- php-coord/datapack-arctic: dev-master
- php-coord/datapack-asia: dev-master
- php-coord/datapack-europe: dev-master
- php-coord/datapack-northamerica: dev-master
- php-coord/datapack-oceania: dev-master
- php-coord/datapack-southamerica: dev-master
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6||^10.0
Suggests
- php-coord/datapack-africa: High-accuracy addon datapack for Africa
- php-coord/datapack-antarctic: High-accuracy addon datapack for the Antarctic
- php-coord/datapack-arctic: High-accuracy addon datapack for the Arctic
- php-coord/datapack-asia: High-accuracy addon datapack for Asia
- php-coord/datapack-europe: High-accuracy addon datapack for Europe
- php-coord/datapack-northamerica: High-accuracy addon datapack for North America
- php-coord/datapack-oceania: High-accuracy addon datapack for Oceania
- php-coord/datapack-southamerica: High-accuracy addon datapack for South America
This package is auto-updated.
Last update: 2024-03-24 16:36:59 UTC
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.
6982 different coordinate systems are supported, covering the entire globe. Some 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.