2017 © Pedro Peláez
 

symfony-bundle get-id3-bundle

Makes it easy to show the getId3 library in symfony's debugger timeline

image

simonsimcity/get-id3-bundle

Makes it easy to show the getId3 library in symfony's debugger timeline

  • Friday, June 27, 2014
  • by SimonSimCity
  • Repository
  • 1 Watchers
  • 0 Stars
  • 133 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

GetId3Bundle

This bundle creates a Symfony integration for the GetId3 library. All actions will be recorded and show up in the timeline in the Symfony2 profiler., (*1)

Currently only writing of tags is tracked. Feel free to extend it., (*2)

Installation

Require simonsimcity/get-id3-bundle into your composer.json file:, (*3)

``` json { "require": { "simonsimcity/get-id3-bundle": "dev-master" } }, (*4)


Register the bundle in your Kernel: ```php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Simonsimcity\GetId3Bundle\SimonsimcityGetId3Bundle(), // ... ); }

You can activate the stopwatch for every call against the GetId3 library by adding the following lines to your configuration:, (*5)

simonsimcity_get_id3:
    profiler_enabled: true

My personal recommendation is to add these lines to your config_dev.yml file., (*6)

In addition, you have to use the factory, provided in this bundle instead of creating the instances by your own. Here's an example of how to use it:, (*7)

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class SampleController extends Controller
{
    public function updateId3TagsAction($file)
    {
        $tagWriter = $this->get("SimonsimcityGetId3.Factory")->getTagsWriter();
        $tagWriter->filename = $file;
        $tagWriter->tagformats = array('id3v2.3');
        $tagWriter->tag_encoding = 'UTF-8';
        $tagWriter->remove_other_tags = true;

        // ...

        $tagWriter->WriteTags();
    }
}

The Versions

27/06 2014

dev-master

9999999-dev

Makes it easy to show the getId3 library in symfony's debugger timeline

  Sources   Download

MIT

The Requires

 

by Simon Schick

debug profile symfony getid3 timeline