Registry / utility / php-coord-php-coord

php-coord-php-coord

JSON →
library5.11.1phppackagistunverified

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.

composer require php-coord/php-coord
INSTALL
IMPORT
SIG · PHP-COORD-PHP-COOR
P
php-coord-php-coord
utilityphpv5.11.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Geographic2D
use PHPCoord\CoordinateReferenceSystem\Geographic2D;

Convert coordinates from WGS84 to OSGB36

use PHPCoord\CoordinateReferenceSystem\Geographic2D; $from = Geographic2D::fromSRID(Geographic2D::EPSG_WGS_84); $to = Geographic2D::fromSRID(Geographic2D::EPSG_OSGB36); $point = $from->to($to, [51.5, -0.1]); echo $point[0] . ', ' . $point[1];
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.11.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
php-coord-php-coord — pip install php-coord-php-coord · libregistry