An open API service indexing awesome lists of open source software.

https://github.com/krakphp/symfony-playground

Symfony Dev Playground for Testing Code
https://github.com/krakphp/symfony-playground

playground symfony symfony-bundle symfony4 tinker

Last synced: about 1 month ago
JSON representation

Symfony Dev Playground for Testing Code

Awesome Lists containing this project

README

          

# 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

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

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

```php

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

## 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:

```php
info("Playing with my symfony app!");
};
```

You should be able to run this with: `./bin/console playground`.