doska / symfony
Dev-only toolbar that turns a clicked element into a Symfony-aware prompt: controller, Twig file and line, and UX component.
Package info
Language:JavaScript
Type:symfony-bundle
pkg:composer/doska/symfony
Fund package maintenance!
Requires
- php: >=8.4
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- twig/twig: ^3.21
Requires (Dev)
None
Suggests
- symfony/stimulus-bundle: Adds Stimulus controller names to the copied prompt.
- symfony/ux-live-component: Adds Live Component name and props to the copied prompt.
- symfony/ux-turbo: Adds the surrounding Turbo frame to the copied prompt.
- symfony/ux-twig-component: Names Twig components in the copied prompt.
Provides
None
Conflicts
None
Replaces
None
README
Doska for Symfony
Dev-only Symfony toolbar. Point at an element, write a note, and copy a prompt that names the controller, the Twig file and line, and the Symfony UX component. A connected agent can also read and resolve notes through the stateless MCP endpoint.
The bundle does nothing unless kernel.debug is true. Register it for the dev and test environments only.
Install
composer require --dev doska/symfony
// config/bundles.php Doska\DoskaBundle::class => ['dev' => true, 'test' => true],
# config/routes/doska.yaml when@dev: doska: resource: '@DoskaBundle/config/routes.php'
If the app firewall starts a session for every URL, exclude /_doska the same way as /_profiler and /_wdt. The routes are stateless.
Clear the cache once so Twig recompiles with the source map:
php bin/console cache:clear
See the canonical Doska README for the prompt contents, configuration, accessibility checks, notes panel, and agent setup. Development happens in that monorepo; this package repository is generated and is read-only.
License
MIT