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.2(5mo ago)7592.9k↑15.9%1GPL-2.0-or-laterPHPPHP &gt;=8.1

Since May 25Pushed 1mo ago11 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 1mo ago

READMEChangelogDependencies (11)Versions (24)Used By (1)

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

58

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community24

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

Recently: every ~98 days

Total

23

Last Release

175d 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 (19 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (14 commits)")[![jdforrester](https://avatars.githubusercontent.com/u/881572?v=4)](https://github.com/jdforrester "jdforrester (12 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

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[ps/image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.

9341.7M25](/packages/ps-image-optimizer)[joserick/png-metadata

A PHP library for extract the metadata (XMP, EXIF) within a PNG format image.

2234.7k](/packages/joserick-png-metadata)[alchemy/phpexiftool

Exiftool driver for PHP

40189.1k4](/packages/alchemy-phpexiftool)[frameright/image-metadata-parser

Image metadata parsing library

1133.9k](/packages/frameright-image-metadata-parser)[godruoyi/ocr

The Best Image Ocr SDK For BAT.

19314.7k1](/packages/godruoyi-ocr)

PHPackages © 2026

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