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: 690 411
Dependents: 14
Suggesters: 0
Security: 0
Stars: 103
Watchers: 11
Forks: 18
Open Issues: 2
Requires
- php: ^8.1
- 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.65
- 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: ^10.5||^11.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
- dev-master / 5.x-dev
- v5.10.3
- v5.10.2
- v5.10.1
- v5.10.0
- v5.9.2
- v5.9.1
- v5.9.0
- v5.8.0
- v5.7.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.1
- v5.0.0
- 4.x-dev
- v4.7.1
- v4.7.0
- v4.6.1
- v4.6.0
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v4.0.0beta1
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.0
- 2.1
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0
- 1.1.2
- 1.1.1
- 1.1
- 1.0
This package is auto-updated.
Last update: 2025-03-01 00:14:39 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.
6999 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.