PHPackages                             antodippo/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. antodippo/exif-reader

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

antodippo/exif-reader
=====================

A simple, straightforward and fully typed, Exif reader library

1.0.0(5y ago)61102MITPHPPHP ^7.2CI passing

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/antodippo/exif-reader)[ Packagist](https://packagist.org/packages/antodippo/exif-reader)[ RSS](/packages/antodippo-exif-reader/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Exif reader
===========

[](#exif-reader)

[![Latest Stable Version](https://camo.githubusercontent.com/7161c70233ccbc73bbd95fa384f570c43e873d9d6c22c2ce39389930e3e46611/68747470733a2f2f706f7365722e707567782e6f72672f616e746f646970706f2f657869662d7265616465722f76)](//packagist.org/packages/antodippo/exif-reader)[![PHP7.2 build](https://github.com/antodippo/exif-reader/workflows/PHP7.2/badge.svg)](https://github.com/antodippo/exif-reader/workflows/PHP7.2/badge.svg)[![PHP7.3 build](https://github.com/antodippo/exif-reader/workflows/PHP7.3/badge.svg)](https://github.com/antodippo/exif-reader/workflows/PHP7.3/badge.svg)[![PHP7.4 build](https://github.com/antodippo/exif-reader/workflows/PHP7.4/badge.svg)](https://github.com/antodippo/exif-reader/workflows/PHP7.4/badge.svg)

[![codecov](https://camo.githubusercontent.com/a45e8ee60a84073c4ddb5b458dba6c5d5fd705c29fd3ab9eadf15c144bf4a7d1/68747470733a2f2f636f6465636f762e696f2f67682f616e746f646970706f2f657869662d7265616465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/antodippo/exif-reader)[![Mutation testing badge](https://camo.githubusercontent.com/05aa5298a037467075ff0f651f6191eb9b5e31db29a0cbba7fc7b04bf12bccc3/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246616e746f646970706f253246657869662d7265616465722532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/antodippo/exif-reader/master)[![Type coverage badge](https://camo.githubusercontent.com/3c0a7513f0c8b2512783fd3327eb64ab41b67e7c0cf14d9780c40345d95adb12/68747470733a2f2f73686570686572642e6465762f6769746875622f616e746f646970706f2f657869662d7265616465722f636f7665726167652e737667)](https://shepherd.dev/github/antodippo/exif-reader)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This is a simple, straightforward and fully typed Exif reader library. It's based on [`exif_read_data`](https://www.php.net/manual/en/function.exif-read-data.php) PHP function, but it avoids a lot of headaches. It requires the [Exif extension](https://www.php.net/manual/en/exif.installation.php) to be installed.

The simplest way to install it is through Composer:

```
$ composer require antodippo/exif-reader
```

To use it, it's as simple as this:

```
$exifReader = new Reader();

try {
    $exifData = $exifReader->read('/tests/images/with-coordinates.jpg');
} catch (CannotReadExifData $e) {
    echo 'Cannot read exif data: ' . $e->getMessage();
}

echo $exifData->getCameraData()->getMaker();        // Sony
echo $exifData->getCameraData()->getModel();        // F5121
echo $exifData->getFileData()->getTakenDate();      // 2017-06-09 18:43:32
echo $exifData->getGeoLocation()->getLatitude();    // 64.25784
echo $exifData->getGeoLocation()->getLongitude();   // -21.121168
```

### Running the project and contributing

[](#running-the-project-and-contributing)

The library comes with a Docker setup. To build the containers:

```
$ make setup
```

To run the pipeline (static analysis, tests, mutations) for a specific PHP version:

```
$ make php72-pipeline
$ make php73-pipeline
$ make php74-pipeline
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~131 days

Total

2

Last Release

2185d ago

Major Versions

0.1.0 → 1.0.02020-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fdb7e40d9cf81fdbf21765d30becdd36665c2a51ae486b815076b8c5fe3fe13?d=identicon)[antodippo](/maintainers/antodippo)

---

Top Contributors

[![antodippo](https://avatars.githubusercontent.com/u/2117078?v=4)](https://github.com/antodippo "antodippo (15 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

imagesexif

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6038.1M54](/packages/rosell-dk-webp-convert)[jbzoo/image

A PHP class that simplifies working with images

171126.9k3](/packages/jbzoo-image)[fileeye/pel

PHP Exif Library. A library for reading and writing Exif headers in JPEG and TIFF images using PHP.

197.1M2](/packages/fileeye-pel)[mindkomm/timmy

Advanced image manipulation for Timber.

17735.6k](/packages/mindkomm-timmy)[wp-media/imagify-plugin

Image optimization plugin for WordPress by WP Media.

7960.9k](/packages/wp-media-imagify-plugin)[spatie/pixelmatch-php

Compare images using PHP

5783.7k9](/packages/spatie-pixelmatch-php)

PHPackages © 2026

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