Skip to content

mhor-music/php-mp3info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php-Mp3Info

Build Status Codacy Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status PullReview stats

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

About

PHP class to read ID3v1 tags with mp3info command

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages