Via Composer:
$ composer require kaloa/xmp
The following PHP versions are supported:
- PHP 5.3
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7
- HHVM
exiv2 is a useful tool to work with image files. Here are some common tasks:
List all XMP data from a file:
$ exiv2 -px <file>
Extract XMP data from a file <image>.<ext>
to <image>.xmp
:
$ exiv2 -eX <image>.<ext>
$ ./vendor/bin/phpunit
Further quality assurance:
$ ./vendor/bin/phpcs --standard=PSR2 ./src
$ ./vendor/bin/phpmd ./src text codesize,design,naming
The package is published under the MIT License. See LICENSE for full license info.