PHPackages                             gomoob/php-metadata-extractor - 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. gomoob/php-metadata-extractor

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

gomoob/php-metadata-extractor
=============================

PHP wrapper to easily call the Java metadata-extrator library.

2.9.1-alpha.4(9y ago)123792MITPHPPHP ^5.6 || ^7.0

Since Aug 9Pushed 9y ago2 watchersCompare

[ Source](https://github.com/gomoob/php-metadata-extractor)[ Packagist](https://packagist.org/packages/gomoob/php-metadata-extractor)[ RSS](/packages/gomoob-php-metadata-extractor/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (11)Versions (6)Used By (0)

php-metadata-extractor
======================

[](#php-metadata-extractor)

> PHP wrapper to easily call the Java metadata-extrator library.

[![Total Downloads](https://camo.githubusercontent.com/91d3d385dbfd407517028734210665b74e6311d7f8b18eea94e2a095aa908238/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-metadata-extractor)[![Latest Stable Version](https://camo.githubusercontent.com/7a6a496d09e43a354a6f1393a62c43f34a233f406f3d39f587e540545635defb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-metadata-extractor)[![Build Status](https://camo.githubusercontent.com/7561dfe3529dfac28f52a5fe46009f91e80054c7c7e866257dca933556a73ec3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://travis-ci.org/gomoob/php-metadata-extractor)[![Coverage](https://camo.githubusercontent.com/04f9658f6f705307b67050a253ec3a6349a2c058b304fabc75db2b8e53ae60b2/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://coveralls.io/r/gomoob/php-metadata-extractor?branch=master)[![Code Climate](https://camo.githubusercontent.com/d0c6eca0468964751d7987aa5e36750c80addc330f0686d81f5776e77f9d87f6/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://codeclimate.com/github/gomoob/php-metadata-extractor)[![License](https://camo.githubusercontent.com/2276e921fa9ae70cc2685817f7aacc00492959062327601bab427799c63ddacf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676f6d6f6f622f7068702d6d657461646174612d657874726163746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/gomoob/php-metadata-extractor)

Introduction
------------

[](#introduction)

`php-metadata-extractor` is a wrapper used to call the powerful Java [`metadata-extractor`](https://github.com/drewnoakes/metadata-extractor "metadata-extractor") library and have access to the same APIs in PHP.

So here we'll provide the same documentation as `metadata-extractor` but for PHP, here is how to get metadata with the library.

```
Metadata metadata = ImageMetadataReader.readMetadata(imagePath);
```

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

[](#installation)

The easiest way to install the library is to use [composer](https://getcomposer.org/ "composer") and define the following dependency inside your `composer.json` file :

```
{
    "require": {
        "gomoob/php-metadata-extractor": "~2.9"
    }
}
```

Please also note that because the library is a wrapper around a Java library the `java` executable must be available in your `PATH` variable.

Versioning
----------

[](#versioning)

To easier version identification the version of `php-metadata-extractor` will always be aligned with the version of the Java `metadata-extractor` library.

Stable versions of `php-metadata-extrator` will be equal to `X.Y.Z-N` where `N` represents a patch number associated to `php-metadata-extractor`.

Unstable or uncomplete versions of `php-metadata-extractor` will be equal to `X.Y.Z-alpha.N`,
`X.Y.Z-beta.N` or `X.Y.Z-rc.N`.

Contribute
----------

[](#contribute)

### Rules

[](#rules)

The `metadata-extractor` Java library is very complete, so we need to improve its integration, if you would like to contribute please respect the following rules :

- Create your pull requests only on the `develop` branch, the `master` branch should only be used by Gomoob to create new versions ;
- Use the `grunt phpcbf` command to automatically format your code with PHP Code Sniffer ;
- Use the `grunt phpcs` command to check your code before creating your Pull request ;
- Always try to fully document your classes, properties and functions.

### Builds

[](#builds)

The build scripts are managed with [Grunt](%22Grunt%22), to use is you first have to install [Node](%22Node%22) and use the `npm install`.

The PHP dependencies are managed with [Composer](%22Composer%22), run the `composer update` command before calling any build command.

Ensure you have a working Java environnement and that the `java` executable is available in your `PATH`.

The following builds are available :

- `grunt` clean temporary build files, run the PHPUnit unit tests and generated the PHPDocumentor documentation ;
- `grunt phpcbf` automatically clean the source code for PHP Code Sniffer ;
- `grunt phpcs` check the validity of the source code with PHP Code Sniffer ;
- `grunt test` execute the PHPUnit unit tests ;
- `grunt generate-documentation` generate the PHPDocumentor documentation ;
- `grunt pdepend` generate the PDepend quality charts ;
- `grunt phpmd` generate the PHPMD code quality reports.

Release history
---------------

[](#release-history)

### 2.9.1-alpha.4 (2016-08-25)

[](#291-alpha4-2016-08-25)

- Add `\Gomoob\MetadataExtractor\Metadata\Photoshop\DuckyDirectory` class.

### 2.9.1-alpha.3 (2016-08-25)

[](#291-alpha3-2016-08-25)

- Add `\Gomoob\MetadataExtractor\Metadata\Bmp\BmpHeaderDescriptor` to begin management of BMP files ;
- Add `\Gomoob\MetadataExtractor\Metadata\Bmp\BmpHeaderDirectory` to begin management of BMP files ;
- Update composer dependencies and improve composer configuration.

### 2.9.1-alpha.2 (2016-08-10)

[](#291-alpha2-2016-08-10)

- Implement the `\Gomoob\MetadataExtractor\Metadata\Directory#containsTag($tagType)` method ;
- Fix unit tests on Travis ;
- Add contribution instructions in the README file.

### 2.9.1-alpha.1 (2016-08-09)

[](#291-alpha1-2016-08-09)

- Initial version.

About Gomoob
------------

[](#about-gomoob)

At [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would you like to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible !

You can contact us by email at  or by phone number (+33) 6 85 12 81 26 or (+33) 6 28 35 04 49.

Visit also  to discover more Open Source softwares we develop.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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 ~5 days

Total

4

Last Release

3595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4852e6f187378c657f58d61a19e474105855a236b23255204baf14218c5c657f?d=identicon)[bgaillard](/maintainers/bgaillard)

![](https://www.gravatar.com/avatar/22dd33f77ada75e74bcd51e4a573d8ad99d13586c8220c5c5eb9228fc5eb3b03?d=identicon)[simonbaudry](/maintainers/simonbaudry)

---

Top Contributors

[![bgaillard](https://avatars.githubusercontent.com/u/1327782?v=4)](https://github.com/bgaillard "bgaillard (36 commits)")

---

Tags

gomoobmetadata-extractionmetadata-extractorphpimagemetadataphotoexifgomoobmetadata-extractor

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gomoob-php-metadata-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/gomoob-php-metadata-extractor/health.svg)](https://phpackages.com/packages/gomoob-php-metadata-extractor)
```

###  Alternatives

[frameright/image-metadata-parser

Image metadata parsing library

1135.1k](/packages/frameright-image-metadata-parser)[fileeye/pel

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

207.7M2](/packages/fileeye-pel)[dantsu/php-image-editor

PHP library to easily edit image with GD extension.

33167.0k2](/packages/dantsu-php-image-editor)[carlcs/craft-assetmetadata

Asset Metadata plugin for Craft CMS

316.9k](/packages/carlcs-craft-assetmetadata)[jellybellydev/image-orientation-fix

PHP library to fix image orientation by exif data.

1710.9k](/packages/jellybellydev-image-orientation-fix)[reliqarts/laravel-guided-image

Simplified and ready image manipulation for Laravel via intervention image.

341.6k](/packages/reliqarts-laravel-guided-image)

PHPackages © 2026

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