- Create your tests as snippets in
/site/snippets/playground/ - Access your tests at
/playground/[component-name]
For example, if you have a snippet named buttons.php, it will be available at /playground/buttons.
- Custom route handling for
/playground/(:any?) - Site method
playgroundLinks()that scans the playground snippets directory and creates a navigation list - Components are rendered through virtual pages, without requiring actual page files
- Loads CSS files from
assets/css/playground/[component-name].cssand a globalplayground.css - Built-in fallback to a component list when accessing non-existent components
You can enable authentication to restrict access to logged-in Panel users:
// site/config/config.php
return [
'medienbaecker.playground.auth' => true
];assets/
├── css/
│ └── playground/
│ ├── playground.css
│ └── your-component.css
site/
├── snippets/
│ └── playground/
│ └── your-component.php
