I maintain Simple Data Objects, a typed PHP DTO library for Laravel and standalone PHP applications. The main idea is simple: DTO metadata is compiled once and reused for hydration, serialization, validation, casting, JSON Schema generation, and TypeScript generation. That avoids repeatedly discover...
Seeing Laravel get rewritten in every other language this week, maybe I should have written this package in Rust, Go, Zig or even COBOL :) Anyway. I maintain Simple Data Objects, a DTO library for Laravel 12–13 and any PHP application. I posted it here back on 1.x, with the benchmark: https://github...
Wrote up how I moved a PHP DTO hydration library from reflection-based instantiation to compiled, per-class factory closures - reflection overhead disappears, plain properties become inline array reads, and the generated code gets cached so a warmed FPM worker pays neither reflection nor eval(). Wen...
Pest just keeps raising the bar for PHP testing. The TIA agent looks especially interesting - curious how much time it'll save in day-to-day Laravel development. Great work!
I used AI partially — specifically Claude Code — for a limited slice of the work, scoped with a spec/plan upfront rather than free-form generation. Mainly the benchmark suite, plus some portion of the library code.
Run any AI coding agent in the project root—Claude Code, Gemini CLI, Codex, or any other.
Start by preparing a project specification using Markdown files (md). Document what the project is, its architecture, coding conventions, testing strategy, code style, and any other important project-specific rules.
That alone is usually enough to make a significant difference in how well the AI understands your project's context.
From there, you can start creating custom skills or workflows. For example, when implementing a new feature, the agent could automatically scaffold the entire CRUD structure, including controllers, models, migrations, services, factories, tests, and any other project-specific boilerplate.
To be precise: OPcache/JIT are both explicitly enabled in the benchmark's Docker image (opcache.enable_cli=1, opcache.jit=tracing) — this isn't a "without OPcache" number. And spatie/laravel-data's structure discovery is itself memoized in-process after the first call (CachedDataConfig), so reflection isn't re-run per hydration either. The gap comes from what runs after structure is known: laravel-data dispatches each ::from() through a ~7-step generic pipe pipeline (map/cast/validate/etc.) that re-walks the property list every call. OPcache/JIT speed up bytecode execution, not that per-call dispatch overhead. SDO compiles the whole thing into one specialized closure per class at build time, so there's no pipeline left to run.
Pest just keeps raising the bar for PHP testing. The TIA agent looks especially interesting - curious how much time it'll save in day-to-day Laravel development. Great work!
I used AI partially — specifically Claude Code — for a limited slice of the work, scoped with a spec/plan upfront rather than free-form generation. Mainly the benchmark suite, plus some portion of the library code.
Run any AI coding agent in the project root—Claude Code, Gemini CLI, Codex, or any other.
Start by preparing a project specification using Markdown files (md). Document what the project is, its architecture, coding conventions, testing strategy, code style, and any other important project-specific rules.
That alone is usually enough to make a significant difference in how well the AI understands your project's context.
From there, you can start creating custom skills or workflows. For example, when implementing a new feature, the agent could automatically scaffold the entire CRUD structure, including controllers, models, migrations, services, factories, tests, and any other project-specific boilerplate.
Thanks, that means a lot!
To be precise: OPcache/JIT are both explicitly enabled in the benchmark's Docker image (opcache.enable_cli=1, opcache.jit=tracing) — this isn't a "without OPcache" number. And spatie/laravel-data's structure discovery is itself memoized in-process after the first call (CachedDataConfig), so reflection isn't re-run per hydration either. The gap comes from what runs after structure is known: laravel-data dispatches each ::from() through a ~7-step generic pipe pipeline (map/cast/validate/etc.) that re-walks the property list every call. OPcache/JIT speed up bytecode execution, not that per-call dispatch overhead. SDO compiles the whole thing into one specialized closure per class at build time, so there's no pipeline left to run.