chillerlan / php-id3tag
ID3 tag reader. PHP7.4+
Fund package maintenance!
Ko Fi
www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4
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: 2024-12-10 18:45:10 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); } }