2017 © Pedro Peláez
 

library image-exif-reader

PHP Exif reader for images that ensures image path is not a URL

image

freeman/image-exif-reader

PHP Exif reader for images that ensures image path is not a URL

  • Tuesday, May 23, 2017
  • by CodyFreeman
  • Repository
  • 0 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Image Exif Reader

PHP exif wrapper that ensures image is valid and not a URL. Allows for fetching of single fields of exif data. PSR-4 compliant for easy autoloading., (*1)

Prerequisites

Usage

PHP 7.0^, (*2)

Development

phpunit 6.1^, (*3)

Installation

Use composer to install this library., (*4)

Either use CLI:, (*5)

php composer.phar require "freeman/image-exif-reader", (*6)

or add it to your composer file:, (*7)

"freeman/image-exif-reader": "^1.0", (*8)

Usage

Create a new instance of the ImageExifReader class provided in src folder, (*9)

$reader = new \Freeman\ImageExifReader\ImageExifReader();, (*10)

To get an array of exif, use getExifData., (*11)

$reader->getExifData($myImagePath);, (*12)

If you only want the data from a specific key of the exif array, use getExifDataByKey. For instance, if you wish to retrieve only the filename:, (*13)

$reader->getExifDataByKey($myImage, 'FileName'), (*14)

In both scenarios the call will return null if the image format is wrong, or the requested exif data does not exist., (*15)

In case the file does not exist an exception is thrown, (*16)

Running tests

Image Exif Reader comes with phpunit tests and a phpunit.xml file., (*17)

Version History

1.0.0: Initial release on GitHub and Packagist, (*18)

1.0.1: Readme updates only, (*19)

The Versions

23/05 2017

dev-master

9999999-dev https://github.com/CodyFreeman/ImageExifReader

PHP Exif reader for images that ensures image path is not a URL

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Cody Freeman

php library wrapper image exif

23/05 2017

v1.0.1

1.0.1.0 https://github.com/CodyFreeman/ImageExifReader

PHP Exif reader for images that ensures image path is not a URL

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Cody Freeman

php library wrapper image exif

23/05 2017

v1.0.0

1.0.0.0 https://github.com/CodyFreeman/ImageExifReader

PHP Exif reader for images that ensures image path is not a URL

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Cody Freeman

php library wrapper image exif