duncan3dc / meta-audio
A library to read and write metadata tags to audio files
Requires
- php: ^7.2 || ^8.0
- duncan3dc/bom-string: ^1.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3 || ^1.0
- duncan3dc/php-ini: ^1.0
- maglnet/composer-require-checker: ^2.0
- mockery/mockery: ^1.2
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: ^3.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-12 10:11:36 UTC
README
A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
WARNING: This library is still very much experimental, and will likely corrupt your beloved audio files, use with caution (and backups)
Full documentation is available at https://duncan3dc.github.io/meta-audio/
PHPDoc API documentation is also available at https://duncan3dc.github.io/meta-audio/api/
Installation
Using composer:
$ composer require duncan3dc/meta-audio
Quick Example
$tagger = new \duncan3dc\MetaAudio\Tagger; $tagger->addDefaultModules(); $mp3 = $tagger->open("/var/music/song.mp3"); echo "Artist: {$mp3->getArtist()}\n"; echo "Album: {$mp3->getAlbum()}\n"; echo "Year: {$mp3->getYear()}\n"; echo "Track No: {$mp3->getTrackNumber()}\n"; echo "Title: {$mp3->getTitle()}\n";
Read more at http://duncan3dc.github.io/meta-audio/
Changelog
A Changelog has been available since the beginning of time
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can connect with me on LinkedIn