2017 © Pedro Peláez
 

library getid3

This fork of GetId3 library updates to PSR-2 / PSR-4 CS, adds namespaces and makes it installable by composer.

image

phansys/getid3

This fork of GetId3 library updates to PSR-2 / PSR-4 CS, adds namespaces and makes it installable by composer.

  • Friday, May 26, 2017
  • by phansys
  • Repository
  • 5 Watchers
  • 28 Stars
  • 111,157 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 34 Forks
  • 4 Open issues
  • 9 Versions
  • 7 % Grown

The README.md

GetId3

Build Status, (*1)

This release of GetId3 library updates to PSR-0 CS and makes it Symfony2 installable by deps or composer mechanisms., (*2)

  • [Main site] http://www.getid3.org
  • [Support] http://support.getid3.org/

License

For license info please read Resources/doc/license.txt, (*3)

For commercial license read Resources/doc/license.commercial.txt, (*4)

Installation

(You can choose deps or composer install mechanisms), (*5)

deps

Step 1: Download GetId3

Add following lines to your deps file:, (*6)

[GetId3]
    git=https://github.com/phansys/GetId3.git
    target=/phansys/getid3/GetId3

Now, run the vendors script to download the library:, (*7)

``` bash $ php bin/vendors install, (*8)


##### Step 2: Configure the Autoloader Add the `GetId3` namespace to your autoloader: ``` php <?php // app/autoload.php $loader->registerPrefixes(array( // ... 'GetId3_' => __DIR__.'/../vendor/phansys/getid3/GetId3', ));

[composer] (http://getcomposer.org/)

Step 1: Edit composer.json

Add following lines to your composer.json "require" definitions:, (*9)

``` json "phansys/getid3": "master", (*10)


##### Step 2: Run composer Now, run the composer script to download the library: ``` bash $ php composer.phar install

Quick use example reading audio properties

``` php <?php namespace My\Project;, (*11)

use \GetId3_GetId3 as GetId3;, (*12)

class MyClass { // ... private function MyMethod() { $getId3 = new GetId3(); $getId3->option_md5_data = true; $getId3->option_md5_data_source = true; $getId3->encoding = 'UTF-8';
$mp3File = '/path/to/my/mp3file.mp3';
$audio = $getId3->analyze($mp3File);
if (isset($audio['error'])) { throw new \RuntimeException('Error at reading audio properties with GetId3 : ' . $mp3File); }
$this->setLength(isset($audio['playtime_seconds']) ? $audio['playtime_seconds'] : ''); // var_dump($audio); } } ```, (*13)

The Versions

26/05 2017

2.1.x-dev

2.1.9999999.9999999-dev http://www.getid3.org

This fork of GetId3 library updates to PSR-2 / PSR-4 CS, adds namespaces and makes it installable by composer.

  Sources   Download

GPL

The Requires

  • php >=5.3.3

 

The Development Requires

tags metadata getid3

28/06 2015

dev-master

9999999-dev http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3

26/04 2013

2.0.x-dev

2.0.9999999.9999999-dev http://www.getid3.org

This release of GetId3 library updates to PSR-0 CS, add namespaces and makes it Symfony 2.x installable by deps or composer mechanisms.

  Sources   Download

GPL

tags metadata getid3

04/12 2012

v2.0.0-BETA1

2.0.0.0-beta1 http://www.getid3.org

This release of GetId3 library updates to PSR-0 CS, add namespaces and makes it Symfony 2.x installable by deps or composer mechanisms.

  Sources   Download

GPL

tags metadata getid3

18/10 2012

1.9.4.x-dev

1.9.4.9999999-dev http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3

30/08 2012

v1.9.4-p2

1.9.4.0-patch2 http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3

28/08 2012

v1.9.4-p1

1.9.4.0-patch1 http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3

23/08 2012

dev-v1.8.5-p1-original

dev-v1.8.5-p1-original http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3

15/08 2012

v1.8.5-p1

1.8.5.0-patch1 http://www.getid3.org

This package integrates the GetId3 library with the Symfony2 project, emulating the PSR-0 CS

  Sources   Download

GPL

tags metadata getid3