snide/memetor

Media metadata extractor library

0.9.0 2014-02-16 13:14 UTC

This package is not auto-updated.

Last update: 2024-10-26 16:38:40 UTC


README

PHP MEdia MEtadata extracTOR library

Build Status Scrutinizer Quality Score Code Coverage

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!