Search by

duncan3dc / meta-audio

duncan3dc

A library to read and write metadata tags to audio files

Package info

github.com/duncan3dc/meta-audio

pkg:composer/duncan3dc/meta-audio

Statistics

Installs: 3 671

Dependents: 0

Suggesters: 0

Stars: 35

Open Issues: 7

0.6.0 2021-01-10 20:06 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/

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 connect with me on LinkedIn