MetaAudio A PHP library to read and write metadata tags to audio files

Getting Started

Usage

Writing Tags

View the API Documentation for this class

WARNING: This library is still very much experimental, and will likely corrupt your beloved audio files, use with caution (and backups)

Once you have an Mp3 instance you can use it to update your files with new tags.

$mp3->setArtist("Protest The Hero");
$mp3->setAlbum("Kezia");
$mp3->setYear(2005);
$mp3->setTrackNumber(1);
$mp3->setTitle("No Stars Over Bethlehem");
$mp3->save();

All of the set methods return the current instance, so you can chain them together, like so:

$tagger
    ->open("/var/music/song.mp3")
    ->setArtist("Me")
    ->setAlbum("Unreleased")
    ->setYear(2017)
    ->setTrackNumber(0)
    ->setTitle("New Song")
    ->save();

In version 0.4.0 and earlier changes were automatically saved, however this was unreliable so you must now call save() to store your changes to disk