duncan3dc / meta-audio
A library to read and write metadata tags to audio files
Installs: 2 784
Dependents: 0
Suggesters: 0
Security: 0
Stars: 36
Watchers: 5
Forks: 8
Open Issues: 7
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
This package is auto-updated.
Last update: 2024-11-30 02:04:57 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 catch me on Twitter
duncan3dc/meta-audio for enterprise
Available as part of the Tidelift Subscription
The maintainers of duncan3dc/meta-audio and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.