elao/profiler-dashboard-bundle

This bundle compile metrics of last requests into one view.

Installs: 262

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 0

Language:HTML

Type:symfony-bundle

1.0.0 2016-09-02 14:31 UTC

README

What is it?

This bundle compile metrics (request info, performance metrics, db queries, etc.) of last requests (from the Symfony Profiler) into one view.

example

Installation

Symfony >= 2.7

Add repository to composer

"repositories": [
    {
        "url": "https://github.com/Elao/elao-profiler-dashboard-bundle.git",
        "type": "git"
    }
],

Require the bundle in Composer:

$ composer require elao/profiler-dashboard-bundle dev-master@dev

Install the bundle in your AppKernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...

    if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
        // ...
        $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();

        // Elao Profiler Dashboard
        $bundles[] = new Elao\Bundle\ProfilerDashboardBundle\ElaoProfilerDashboardBundle();
    }
}

Import the rounting in your routing_dev.yml configuration file:

// app/config/routing_dev.yml
_elao_profiler_dashboard:
    resource: "@ElaoProfilerDashboardBundle"
    type:     annotation
    prefix:   /_profiler_dashboard

Go on http://app.domain.dev/app_dev.php/_profiler_dashboard/metrics