2017 © Pedro Peláez
 

library zf-getid3-module

ZF2 wrapper for the GetID3 library

image

guliano/zf-getid3-module

ZF2 wrapper for the GetID3 library

  • Sunday, April 12, 2015
  • by guliano
  • Repository
  • 1 Watchers
  • 1 Stars
  • 812 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

ZfGetid3Module

Build Status Coverage Status, (*1)

Introduction

This small module wraps GetID3 library written by James Heinrich (http://www.getid3.org/) for Zend Framework 2. GetID3 instance can be accessed via ServiceLocator., (*2)

Requirements

Please see the composer.json file., (*3)

Installation

Run the following composer command:, (*4)

$ composer require guliano/zf-getid3-module

Alternately, manually add the following to your composer.json, in the require section:, (*5)

Finally, add the module name to your project's config/application.config.php under the modules key:, (*6)

return array(
    /* ... */
    'modules' => array(
        /* ... */
        'ZfGetid3Module',
    ),
    /* ... */
);

Usage

To use this library, just get the GetID3 instance by ServiceLocator like this:, (*7)

/* @var $getid3 \getID3 */
$getid3 = $serviceLocator->get('MediaParser');
$result = $getid3->analyze($pathToFile);
/* do something... */

The Versions

12/04 2015