An open API service indexing awesome lists of open source software.

https://github.com/gemorroj/mp3_id3

Read/Write MP3-Tags
https://github.com/gemorroj/mp3_id3

Last synced: about 2 months ago
JSON representation

Read/Write MP3-Tags

Awesome Lists containing this project

README

        

# This package provides handling of MP3 tags.

[![Build Status](https://secure.travis-ci.org/Gemorroj/MP3_Id3.png?branch=master)](https://travis-ci.org/Gemorroj/MP3_Id3)

Requirements:

1. PHP >= 5.2
2. PEAR
3. MP3_Id
4. MP3_IDv2

Warning!
Due to the outdated design PEAR::isError, in some cases, PHP generates E_STRICT warning

Example:
```php
getTags();

echo '

';

print_r($id3->getMeta());

foreach ($tags as $k => $v) {
if ($k === 'picture') {
echo 'picture';
} else {
print_r($k . ' - ' . print_r($v, true));
}
echo "\n";
}

$tags->setComment('test2');
$tags->setGenreId(23);
$tags->setUrl('http://wapinet.ru');
$tags->setAlbumArtist('test');
//$id3->write();

echo '

';
```