snide / memetor
Media metadata extractor library
0.9.0
2014-02-16 13:14 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-09 16:53:12 UTC
README
PHP MEdia MEtadata extracTOR library
Installation
Installation by Composer
If you use composer, add memetor library as a dependency to the composer.json of your application
"require": { ... "snide/memetor": "dev-master" ... },
Usage
Extract ALL
<?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!