chillerlan / php-id3tag
ID3 tag reader. PHP7.4+
dev-main
2021-05-10 10:17 UTC
Requires
- php: ^7.4 || ^8.0
- ext-fileinfo: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phan/phan: ^4.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2026-03-10 21:45:29 UTC
README
An id3 tag reader.
Documentation
Requirements
- PHP 7.4+
Installation
requires composer
composer.json
(note: replace dev-main with a version boundary)
{
"require": {
"php": "^7.4",
"chillerlan/php-id3tag": "dev-main"
}
}
Profit!
Usage
use chillerlan\ID3Tag\ID3; $id3 = new ID3; // ID3::read() returns an ID3Data object $data = $id3->read('/path/to/my.mp3'); if($data->id3v2 !== null){ foreach($data->id3v2 as $tagdata){ // ... var_dump($tagdata); } }