PHPackages                             wikimedia/xmp-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. wikimedia/xmp-reader

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

wikimedia/xmp-reader
====================

Reader for XMP data containing properties relevant to images

0.10.3(2mo ago)8625.4k—8.6%2GPL-2.0-or-laterPHPPHP &gt;=8.1

Since May 25Pushed 2mo ago10 watchersCompare

[ Source](https://github.com/wikimedia/mediawiki-libs-XMPReader)[ Packagist](https://packagist.org/packages/wikimedia/xmp-reader)[ Docs](https://www.mediawiki.org/wiki/XMPReader)[ RSS](/packages/wikimedia-xmp-reader/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (22)Versions (25)Used By (2)

XMPReader
---------

[](#xmpreader)

Reader for XMP data containing properties relevant to images, written in PHP.

### Usage

[](#usage)

```
composer require wikimedia/xmp-reader
```

```
use Wikimedia\XMPReader\Reader as XMPReader;

//...

// Check if the php instance has the required supported libraries to parse XMP
$isXMPSupported = XMPReader::isSupported();

// Create a new instance
$xmp = new XMPReader();
// or
$xmp = new XMPReader( $logger, $filename );
// where $logger is an implementation of Psr\Log\LoggerInterface and $filename a string describing the origin of your XMP content

// To parse XMP data in $string
$xmp->parse( $string );

// To parse XMP Extended data in $string
$xmp->parseExtended( $string );

// To retrieve the parsed results
$results = $xmp->getResults();
```

The parsed results are returned in an array of 3 potential groups, which indicate their priority according to the Metadata Working Group guidance. [http://www.metadataworkinggroup.org/pdf/mwg\_guidance.pdf](http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf)

```
[
	'xmp-exif' => [],
	'xmp-general' => [],
	'xmp-deprecated' => [],
]
```

### Supported XMP

[](#supported-xmp)

Most of the following metadata sets are supported

-
-
-
-
-
-
-

Some of:

-
-
-
-
-

License
-------

[](#license)

GNU General Public License v2.0

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance87

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~135 days

Total

24

Last Release

68d ago

PHP version history (5 changes)0.5.0PHP &gt;=5.5.9

0.6.0PHP &gt;=5.6.99

0.7.0PHP &gt;=7.2.9

0.9.0PHP &gt;=7.4.3

0.10.0PHP &gt;=8.1

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/716c86d71cbf921e7912a505f89d799de398fc0a3af0bd4c8862834b2d642bd7?d=identicon)[wikimedia](/maintainers/wikimedia)

---

Top Contributors

[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (32 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (21 commits)")[![jdforrester](https://avatars.githubusercontent.com/u/881572?v=4)](https://github.com/jdforrester "jdforrester (14 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (14 commits)")[![bawolff](https://avatars.githubusercontent.com/u/6529932?v=4)](https://github.com/bawolff "bawolff (6 commits)")[![MatmaRex](https://avatars.githubusercontent.com/u/160413?v=4)](https://github.com/MatmaRex "MatmaRex (3 commits)")[![hartman](https://avatars.githubusercontent.com/u/108913?v=4)](https://github.com/hartman "hartman (3 commits)")[![bvibber](https://avatars.githubusercontent.com/u/103075?v=4)](https://github.com/bvibber "bvibber (2 commits)")[![bd808](https://avatars.githubusercontent.com/u/6469?v=4)](https://github.com/bd808 "bd808 (2 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (1 commits)")[![tstarling](https://avatars.githubusercontent.com/u/389141?v=4)](https://github.com/tstarling "tstarling (1 commits)")[![ZabeMath](https://avatars.githubusercontent.com/u/35405030?v=4)](https://github.com/ZabeMath "ZabeMath (1 commits)")[![dringsim](https://avatars.githubusercontent.com/u/57343841?v=4)](https://github.com/dringsim "dringsim (1 commits)")[![Daimona](https://avatars.githubusercontent.com/u/38216014?v=4)](https://github.com/Daimona "Daimona (1 commits)")[![tgr](https://avatars.githubusercontent.com/u/145412?v=4)](https://github.com/tgr "tgr (1 commits)")

---

Tags

metadataxmp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wikimedia-xmp-reader/health.svg)

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

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k902.0k23](/packages/danog-madelineproto)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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