PHPackages                             dem3trio/carbon-profiler-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. dem3trio/carbon-profiler-bundle

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

dem3trio/carbon-profiler-bundle
===============================

Symfony 2/3 profiler extension, to change the Carbon php date in the whole project.

1.1.1(3y ago)22.5k1MITPHPPHP &gt;=5.3.9

Since Jun 19Pushed 3y ago2 watchersCompare

[ Source](https://github.com/dem3trio/carbon-profiler-bundle)[ Packagist](https://packagist.org/packages/dem3trio/carbon-profiler-bundle)[ RSS](/packages/dem3trio-carbon-profiler-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (8)Used By (0)

Carbon Profiler Bundle
======================

[](#carbon-profiler-bundle)

[![SymfonyInsight](https://camo.githubusercontent.com/eceb13326d2f04b2bd6229ddca951975747a995210103e90841191e268d5be69/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f36313734613630362d366135382d343164622d393639322d3064386433356332616331372f6d696e692e737667)](https://insight.symfony.com/projects/6174a606-6a58-41db-9692-0d8d35c2ac17)

Symfony 2/3/4 profiler extension, to change the Carbon php date in the whole project.

Installation
------------

[](#installation)

Install the package with composer.

```
composer require dem3trio/carbon-profiler-bundle --dev

```

Configuration Symfony &gt;= 2.8 and SF &lt;= 3.3
------------------------------------------------

[](#configuration-symfony--28-and-sf--33)

As the package adds a new panel in the Symfony profiler, you should add the bundle under the `dev` section.

```
// app/AppKernel.php

  public function registerBundles()
    {
        $bundles = [
           // ... prod bundles
        ];

        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
          // ... dev bundles

            if ('dev' === $this->getEnvironment()) {
                $bundles[] = new Dem3trio\Bundle\CarbonProfilerBundle\CarbonProfilerBundle();
            }
        }
     }
//
```

Add the routing file under the routing\_dev.yml file

```
# app/config/routing_dev.yml

_time_machine:
    resource: '@CarbonProfilerBundle/Resources/config/routing.yml'
    prefix: /_time_machine

```

Configuration for Symfony 3.4 and 4.x
-------------------------------------

[](#configuration-for-symfony-34-and-4x)

Add the bundle to your bundles.php

```
// config/bundles.php
