Skip to content

lukaszkujawa/php-mp3info

Repository files navigation

php-mp3info is a mp3info (http://ibiblio.org/mp3info/) bindings for PHP.

REQUIREMENTS 

	$ apt-get install php5-dev libncurses-dev

INSTALLATION 

	$ phpize
	$ ./configure
	$ make
	$ make install

Enable extension in PHP

	$ echo "extension=mp3info.so" > /etc/php5/apache2/conf.d/mp3info.ini
	$ echo "extension=mp3info.so" > /etc/php5/cli/conf.d/mp3info.ini
	$ /etc/init.d/apache2 restart

USAGE

	mp3_get_info( [Path to mp3 file] );

EXAMPLE OUTPUT

	Array
	(
	    [seconds] => 343
	    [frames] => 13155
	    [badframes] => 0
	    [id3] => Array
		(
		    [title] => Eve
		    [artist] => Emancipator
		    [album] => Soon It Will Be Cold Enough
		    [year] => 2006
		    [comment] =>
		)

	    [header] => Array
		(
		    [sync] => 4094
		    [version] => 1
		    [bitrate] => 10
		    [freq] => 0
		    [padding] => 0
		    [extension] => 0
		    [mode] => 1
		    [mode_extension] => 2
		    [copyright] => 0
		    [original] => 1
		    [emphasis] => 0
		)

	)

About

PHP wrapper for MP3Info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages