chillerlan/php-id3tag

dev-main 2021-05-10 10:17 UTC

This package is auto-updated.

Last update: 2024-04-10 17:14:41 UTC


README

An id3 tag reader.

PHP Version Support version license Coverage Scrunitizer Packagist downloads
Continuous Integration

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);
	}
}