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

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

abdelrahmanelmaghraby/exif-reader
=================================

A simple, straightforward and fully typed, Exif reader library

0.1.0(2y ago)014MITPHPPHP ^7.2

Since May 29Pushed 2y agoCompare

[ Source](https://github.com/mghrby/exif-reader)[ Packagist](https://packagist.org/packages/abdelrahmanelmaghraby/exif-reader)[ RSS](/packages/abdelrahmanelmaghraby-exif-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

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

[](#exif-reader)

[![Latest Stable Version](https://camo.githubusercontent.com/f4ea406d70a2fc3852c2f92a8586839cb04b1d839b95dc1ed903c697da3d947f/68747470733a2f2f706f7365722e707567782e6f72672f416264656c7261686d616e656c6d61676872616279253543457869665265616465722f76)](//packagist.org/packages/Abdelrahmanelmaghraby%5CExifReader)[![PHP7.2 build](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.2/badge.svg)](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.2/badge.svg)[![PHP7.3 build](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.3/badge.svg)](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.3/badge.svg)[![PHP7.4 build](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.4/badge.svg)](https://github.com/Abdelrahmanelmaghraby%5CExifReader/workflows/PHP7.4/badge.svg)

[![codecov](https://camo.githubusercontent.com/740828f33b9b195021a1a0c501581c442ab1c7f10ede183ee5b4a2e1386c5719/68747470733a2f2f636f6465636f762e696f2f67682f416264656c7261686d616e656c6d61676872616279253543457869665265616465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Abdelrahmanelmaghraby%5CExifReader)[![Mutation testing badge](https://camo.githubusercontent.com/05aa5298a037467075ff0f651f6191eb9b5e31db29a0cbba7fc7b04bf12bccc3/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246616e746f646970706f253246657869662d7265616465722532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Abdelrahmanelmaghraby%5CExifReader/master)[![Type coverage badge](https://camo.githubusercontent.com/bc4412156eca15709f11a020f4d7487f2bb9b1c11c27cb59dfa45fe15696ad50/68747470733a2f2f73686570686572642e6465762f6769746875622f416264656c7261686d616e656c6d61676872616279253543457869665265616465722f636f7665726167652e737667)](https://shepherd.dev/github/Abdelrahmanelmaghraby%5CExifReader)[![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 abdelrahmanelmaghraby/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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 65.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

Unknown

Total

1

Last Release

1079d ago

### Community

Maintainers

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

---

Top Contributors

[![antodippo](https://avatars.githubusercontent.com/u/2117078?v=4)](https://github.com/antodippo "antodippo (15 commits)")[![mghrby](https://avatars.githubusercontent.com/u/25436794?v=4)](https://github.com/mghrby "mghrby (6 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

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/abdelrahmanelmaghraby-exif-reader/health.svg)](https://phpackages.com/packages/abdelrahmanelmaghraby-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)
