mhor / php-mp3info
Simple class to parse mp3info command ID3 tags
v1.0.0
2017-12-18 12:33 UTC
Requires
- php: >=7.1
- symfony/filesystem: ^3 | ^4
- symfony/process: ^3 | ^4
Requires (Dev)
- phpunit/phpunit: ^6
This package is auto-updated.
Last update: 2024-11-15 01:08:45 UTC
README
Introduction
PHP class to read ID3v1 tags with mp3info
command
Installation
You should install mp3info:
On linux:
$ sudo apt-get install mp3info
On Mac:
$ brew install mp3info
To use this class install it through Composer, add:
$ composer require mhor/php-mp3info
How to use
<?php //... use Mhor\PhpMp3Info\PhpMp3Info; //... $mp3Info = new PhpMp3Info(); $mp3Tags = $mp3Info->extractId3Tags('music.mp3'); echo $mp3Tags->getAlbum(); echo $mp3Tags->getTitle(); echo $mp3Tags->getArtist(); echo $mp3Tags->getTrack(); echo $mp3Tags->getBitrate(); echo $mp3Tags->getLength(); //...
LICENSE
See LICENSE
for more information