Skip to content

pdenis/memetor

Repository files navigation

memetor

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!

About

PHP MEdia MEtadata extracTOR library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages