PHPackages                             freeman/image-exif-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. freeman/image-exif-reader

ActiveLibrary[Image &amp; Media](/categories/media)

freeman/image-exif-reader
=========================

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

v1.0.1(8y ago)128MITPHPPHP &gt;=7.0

Since May 23Pushed 8y agoCompare

[ Source](https://github.com/CodyFreeman/ImageExifReader)[ Packagist](https://packagist.org/packages/freeman/image-exif-reader)[ Docs](https://github.com/CodyFreeman/ImageExifReader)[ RSS](/packages/freeman-image-exif-reader/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Image Exif Reader
=================

[](#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.

Prerequisites
-------------

[](#prerequisites)

### Usage

[](#usage)

`PHP 7.0^`

### Development

[](#development)

`phpunit 6.1^`

Installation
------------

[](#installation)

Use composer to install this library.

Either use CLI:

`php composer.phar require "freeman/image-exif-reader"`

or add it to your composer file:

`"freeman/image-exif-reader": "^1.0"`

Usage
-----

[](#usage-1)

Create a new instance of the ImageExifReader class provided in `src` folder

`$reader = new \Freeman\ImageExifReader\ImageExifReader();`

To get an array of exif, use `getExifData`.

`$reader->getExifData($myImagePath);`

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:

`$reader->getExifDataByKey($myImage, 'FileName')`

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

In case the file does not exist an exception is thrown

### Running tests

[](#running-tests)

Image Exif Reader comes with phpunit tests and a phpunit.xml file.

Version History
---------------

[](#version-history)

1.0.0: Initial release on GitHub and Packagist

1.0.1: Readme updates only

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d80bd8f0a0c9a05672aa5af186ac8ae5bffbab549d969a4f30bed7f48d366886?d=identicon)[CodyFreeman](/maintainers/CodyFreeman)

---

Top Contributors

[![CodyFreeman](https://avatars.githubusercontent.com/u/28039768?v=4)](https://github.com/CodyFreeman "CodyFreeman (7 commits)")

---

Tags

phpimagelibrarywrapperexif

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/freeman-image-exif-reader/health.svg)

```
[![Health](https://phpackages.com/badges/freeman-image-exif-reader/health.svg)](https://phpackages.com/packages/freeman-image-exif-reader)
```

###  Alternatives

[lciolecki/php-image-optimizer

PHP image file optimizer (uses https://github.com/bensquire/php-image-optim)

347.4k](/packages/lciolecki-php-image-optimizer)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)[jellybellydev/image-orientation-fix

PHP library to fix image orientation by exif data.

1810.8k](/packages/jellybellydev-image-orientation-fix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
