PHPackages                             vollbehr/php-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. vollbehr/php-reader

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

vollbehr/php-reader
===================

Modernised media metadata reader supporting ID3, ASF, MPEG, ISO and other base media formats.

v2.0-rc1(7mo ago)10[9 issues](https://github.com/vollbehr/php-reader/issues)3BSD-3-ClausePHPPHP ^8.2CI passing

Since Oct 2Pushed 7mo agoCompare

[ Source](https://github.com/vollbehr/php-reader)[ Packagist](https://packagist.org/packages/vollbehr/php-reader)[ Docs](https://github.com/vollbehr/php-reader)[ GitHub Sponsors](https://github.com/sponsors/svollbehr)[ RSS](/packages/vollbehr-php-reader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (2)Used By (3)

PHP Reader
==========

[](#php-reader)

PHP Reader is an object-oriented toolkit for inspecting and authoring media metadata. It ships with parsers and writers for ASF (WMA/WMV), ID3 (v1 and v2), ISO Base Media File Format variants (MP4, M4A, QuickTime, iTunes metadata), MPEG Audio Bit Streams, MPEG Program Streams, and MIME magic signatures. The library targets modern PHP runtimes, follows the PSR coding standards, and includes a comprehensive test suite and documentation set.

Soli Deo Gloria (To God Be The Glory)
-------------------------------------

[](#soli-deo-gloria-to-god-be-the-glory)

I code for the fun of it. It's part of who I am and how God created me. Over the years, He has lifted me from deep waters, set my feet on solid ground, and continues to guide my steps. Without Him, I wouldn't be here creating anything, and for that I give Him all the honour and glory.

This library grew out of a simple need: to display sermon information on the web. By giving it away, I see it as one small good deed, a contribution, however modest, to the greater work of building the Kingdom of God through the gifts He has given me.

I hope you enjoy using this as much as I enjoyed creating it.

*[Sven Vollbehr](https://www.linkedin.com/in/svollbehr)*

Features
--------

[](#features)

ComponentCapabilitiesReadWriteTypical extensions`Vollbehr\\Media\\Asf`Advanced Systems Format containers, including metadata objects✓✓ASF, WMA, WMV`Vollbehr\\Media\\Flac`Free Lossless Audio Codec (FLAC)✓-FLAC`Vollbehr\\Media\\Id3v1`ID3v1.0 and ID3v1.1 tags✓✓MP3`Vollbehr\\Media\\Id3v2`ID3v2.3.0 and ID3v2.4.0 frames✓✓MP3`Vollbehr\\Media\\Iso14496`ISO/IEC 14496-12 Base Media File Format (QuickTime/MP4) and Extensions (iTunes ILST, Nero NDRM, and ID32)✓✓MP4, M4A, M4V, 3GP, MOV, QT`Vollbehr\\Media\\Iso14496`ISO/IEC 23001-7 Extensions (Common Encryption TENC, PSSH)✓✓MP4, M4A, M4V, 3GP, MOV, QT`Vollbehr\\Media\\Mpeg\\Abs`MPEG Audio Bit Stream (ISO/IEC 11172-3, 13818-3)✓–MP1, MP2, MP3`Vollbehr\\Media\\Mpeg\\Ps`MPEG Program Stream (ISO/IEC 11172-1, 13818-1) with duration and stream descriptors✓–MPG, MPEG, VOB, EVO`Vollbehr\\Media\\Riff`RIFF or Resource Interchange File Format✓–RIFF`Vollbehr\\Media\\Riff`RIFF Extensions (ID3v2, WAVE, Broadcast WAV)✓–WAV, BWAV`Vollbehr\\Media\\Vorbis`Vorbis I CODEC in Ogg container✓–OGG, OGA, OGV, SPX`Vollbehr\\Mime\\Magic`MIME magic signature database reader✓–`magic`, `magic.mime`Utility classes such as `Vollbehr\Io\Reader`, `Vollbehr\Io\Writer`, and `Vollbehr\Bit\Twiddling`are bundled for binary parsing and bitwise manipulation.

Feature Requests
----------------

[](#feature-requests)

CapabilitiesTypical extensionsIssue to voteEXIF or Exchangeable Image File FormatJPEG, TIFF, RIFFNot yet implemented (vote for issue 18)Flash VideoFLV, F4V, F4P, F4A, F4BNot yet implemented (vote for issue 36)MP4 / AVC profiles derived from ISO/IEC 14496-12MP4, AVCNot yet implemented as this requires access to commercial specifications. If you are in need of these, consider supporting the project by funding the commercial specifications.Requirements
------------

[](#requirements)

- PHP 8.2 or newer
- Composer

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

[](#installation)

Install the package in any Composer-enabled project:

```
composer require vollbehr/php-reader
```

For contributors:

```
composer install
composer test
```

Composer configures PSR-4 autoloading for the `Vollbehr\\` namespace, so examples simply rely on `vendor/autoload.php`.

Quick Start
-----------

[](#quick-start)

```
