Release v1.0.0: initial Console Debug Bundle
Changelog
Added
cdbg()global helper — non-blocking debug calls; execution continues (unlikedd()).- Role-based gate —
ConsoleDebugGateInterfacewith default enabled + Symfony Security roles. - Optional query parameter gate —
QueryParamConsoleDebugGateexample andquery_paramconfig. - Custom gate service — replace the default gate via
gate_service. - HTML script injection —
ConsoleDebugResponseSubscriberappends console output before</body>on HTML responses. - Browser console output — styled banner, expanded
console.group()entries, file/line, optional label, timing offsets. - JSON-safe payload —
<script type="application/json">+JSON.parse()for safe embedding (namespaces, slashes, special chars). DebugValueNormalizer— scalars, arrays, enums, dates, throwables,JsonSerializable, objects ({ object, hash }or__toString()).- FQCN normalization — PHP class names rendered as
App/Entity/Userin console (JSON-safe). - Twig integration —
{{ cdbg() }},{% cdbg %}, full template context dump (like{% dump %}). - Symfony Flex recipe — bundle registration and default config.
- Demos — FrankenPHP + Docker:
demo/symfony7(port 8010),demo/symfony8(port 8011). - Documentation — installation, configuration, usage, performance, security, upgrading, release process.
- CI / release — GitHub Actions (
ci.yml,release.yml), 100% PHPUnit coverage.
Configuration defaults
console_method:log(visible in DevTools without filtering Info level).label_prefix:[cdbg]roles:[ROLE_CONSOLE_DEBUG]
Full Changelog: https://github.com/nowo-tech/ConsoleDebugBundle/commits/v1.0.0