dimsog / php-geo-image
A very small library to extract geo coordinates (longitude and latitude) from an image
1.0.0
2020-10-16 08:53 UTC
Requires
- php: >=5.4.0
- ext-exif: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-10 03:36:13 UTC
README
A very small library to extract geo coordinates (latitude and longitude ) from an image
Supported PHP versions:
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
- PHP 8.1
Install
composer require dimsog/php-geo-image
Example
use Dimsog\Geoimage\Coordinates; $coordinates = Coordinates::extract(__DIR__ . '/image.jpg'); // $coordinates is: // [ // 53.144123 (Latitude), // 35.369734 (Longitude) // ]
This method returns null, if the coordinates are not found