Skip to content

A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)

License

Notifications You must be signed in to change notification settings

duncan3dc/meta-audio

Repository files navigation

meta-audio

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/

release build coverage

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.

About

A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published