PHP code example of maaaxim / photo-gps

1. Go to this page and download the library: Download maaaxim/photo-gps library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maaaxim / photo-gps example snippets


$photo = new \Maaaxim\Photo\Photo("photos/IMG_20160416_172622.jpg");
$gps = $photo->getGps()->asArray();

$photo = new \Maaaxim\Photo\Photo("photos/IMG_20160416_172622.jpg");
$photo->setGps(57.684541, 39.806899);