PHP MEdia MEtadata extracTOR library
If you use composer, add memetor library as a dependency to the composer.json of your application
"require": {
...
"snide/memetor": "dev-master"
...
},
<?php
include_once('vendor/autoload.php');
$media = new Image('path/to/your/image.jpg');
$extractor = new Snide\Memetor\Image\Extractor\ExifExtractor($this->media);
$extractor = new Snide\Memetor\Image\Extractor\XmpExtractor($extractor);
$extractor = new Snide\Memetor\Image\Extractor\IptcExtractor($extractor);
$metadata = $extractor->getMetadata() // Exif, Iptc, XMP metadata
That's all!