PHPackages                             krak/symfony-playground - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. krak/symfony-playground

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

krak/symfony-playground
=======================

Symfony playground for tinkering/testign your app.

v0.1.3(5y ago)011.7k1[1 PRs](https://github.com/krakphp/symfony-playground/pulls)MITPHP

Since Aug 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/krakphp/symfony-playground)[ Packagist](https://packagist.org/packages/krak/symfony-playground)[ Docs](https://github.com/krakphp/symfony-playground)[ RSS](/packages/krak-symfony-playground/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

Symfony Playground
==================

[](#symfony-playground)

Symfony playground enables developers to quickly test any code in their system and access any of the private services in their app.

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

[](#installation)

Install with composer at `krak/symfony-playground`.

Then you need to change the PlaygroundBundle in your `config/bundles.php` file to be dev only:

```
return [
    // ...
    Krak\SymfonyPlayground\PlaygroundBundle::class => ['dev' => true],
];
```

Usage
-----

[](#usage)

To enable the playground, you can create a playground.php in the project root: `%kernel.project_dir%/playground.php`.

This file needs to return a closure. Here's an example:

```
