New series: what assistive tech really hears on your checkout page. Start with part one →
Shipwright
Home
PHP Aug 19, 2026 1 min read 126 views

Laravel and Symfony Debug Toolbars, Side by Side

Tomás Herrera

Tomás Herrera

@tomasherrera_

Share
Cover illustration for the article Laravel and Symfony Debug Toolbars, Side by Side

The same slow request inspected in both frameworks. PHP has quietly become a pleasant language to write. Typed properties, enums, readonly classes, and now property hooks remove a lot of the boilerplate that gave it a bad reputation.

Laravel Debugbar: queries tab
Laravel Debugbar: queries tab
Symfony profiler: timeline
Symfony profiler: timeline
Laravel Telescope: requests
Laravel Telescope: requests
Symfony profiler: Doctrine panel
Symfony profiler: Doctrine panel

Comparing the tools

We took a class from a six-year-old codebase and rewrote it with current language features. The result is half the length and, more importantly, the invalid states are no longer representable.

What we would change next time

None of this is new, and that is the point. The techniques that last are usually the boring ones that are documented well and supported by the platform itself.

  • Use readonly properties for value objects.
  • Replace string constants with backed enums.
  • Commit a PHPStan baseline and shrink it over time.
  • Autoload everything through Composer.
Tomás Herrera

Tomás Herrera

Author

PHP and WordPress developer for fifteen years. Tomás maintains a handful of open-source plugins and a strong opinion about hooks.

Related Posts

Comments 10

Priya Raman Member

Is there a repo with the full example? Happy to open a PR with a TypeScript version.

Lena Novak

This finally clicked for me after reading the docs three times.

Elias Lindqvist Member

The quote in the middle is doing a lot of work here, and it earns it.

Sofia Rossi

Our accessibility audit flagged exactly this last month. I wish I had read this first.

Kofi Mensah

Is there a repo with the full example? Happy to open a PR with a TypeScript version.

Fatima Zahra

Counterpoint: for small teams the simpler approach in the first section is usually enough.

Ben Carter

This is exactly the write-up I needed this week. We hit the same wall last sprint.

Tomás Herrera Author

Counterpoint: for small teams the simpler approach in the first section is usually enough.

Fatima Zahra

Great post. Did you measure the impact before and after, or is this mostly from experience?

Alex Moreno

Is there a repo with the full example? Happy to open a PR with a TypeScript version.

Leave a comment

Your email will not be published. Sign in for a faster experience.

Supports **bold**, *italic*, and `code`.