Download the PHP package wapmorgan/mp3info without Composer

On this page you can find all versions of the php package wapmorgan/mp3info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mp3info

Mp3Info

The fastest PHP library to get mp3 tags&meta.

Latest Stable Version Total Downloads Latest Unstable Version License

This class extracts information from mpeg/mp3 audio:

tag id3v1 id3v2
song song TIT2
artist artist TPE1
album album TALB
year year TYER
comment comment COMM
track track TRCK
genre genre TCON

Content

  1. Usage
  2. Performance
  3. Console scanner
  4. API
    • Audio information
    • Class methods
    • Settings
  5. Technical information

Usage

After creating an instance of Mp3Info with passing filename as the first argument to the constructor, you can retrieve data from object properties (listed below).

And after that access object properties to get audio information:

To access id3v1 tags use $tags1 property. To access id3v2 tags use $tags2 property. Also, you can use combined list of tags $tags, where id3v2 and id3v1 tags united with id3v1 keys.

Performance

Console scanner

To test Mp3Info you can use built-in script that scans dirs and analyzes all mp3-files inside them. To launch script against current folder:

API

Audio information

Property Description Values
$codecVersion MPEG codec version 1 or 2
$layerVersion Audio layer version 1 or 2 or 3
$audioSize Audio size in bytes. Note that this value is NOT equals file size. int
$duration Audio duration in seconds.microseconds like 3603.0171428571 (means 1 hour and 3 sec)
$bitRate Audio bit rate in bps like 128000 (means 128kb/s)
$sampleRate Audio sample rate in Hz like 44100 (means 44.1KHz)
$isVbr Contains true if audio has variable bit rate boolean
$hasCover Contains true if audio has a bundled image boolean
$channel Channel mode 'stereo' or 'dual_mono' or 'joint_stereo' or 'mono'
$tags1 Audio tags ver. 1 (aka id3v1). ["song" => "Song name", "year" => 2009]
$tags2 Audio tags ver. 2 (aka id3v2), only text ones. ["TIT2" => "Long song name", ...]
$tags Combined audio tags (from id3v1 & id3v2). Keys as in tags1. ["song" => "Long song name", "year" => 2009, ...]
$coverProperties Information about a bundled with audio image. ["mime_type" => "image/jpeg", "picture_type" => 1, ...]
$_parsingTime Contains time spent to read&extract audio information in sec.msec

Class methods

Settings

You can adjust some variables to reconfigure before instantiating of object:

Technical information

Supporting features:

Used sources:


All versions of mp3info with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wapmorgan/mp3info contains the following files

Loading the files please wait ....