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
- Host: GitHub
- URL: https://github.com/krakphp/symfony-playground
- Owner: krakphp
- License: mit
- Created: 2018-08-25T03:52:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T13:31:44.000Z (about 3 years ago)
- Last Synced: 2025-10-09T05:26:03.205Z (8 months ago)
- Topics: playground, symfony, symfony-bundle, symfony4, tinker
- Language: PHP
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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`.