#PHP

Articles tagged PHP

All blog articles tagged PHP.

Commands, Actions and Laravel's Bus: One Use Case per Class

“Put every use case behind a command bus” sounds disciplined until changing one model needs a command, a handler, a mapping and a dispatch call. The opposi...

9 min read

Adapter Pattern in Laravel: Own the Boundary Around a Third-Party SDK

A payment, shipping, or CRM SDK is an external language. Its objects, error types, payload fields, release cadence, and HTTP assumptions are useful at the...

9 min read

tap, rescue, optional, fake — 4 Laravel helpers in practice

Laravel ships with a handful of global helpers that senior developers reach for constantly, yet rarely see documented beyond a one-liner in the official do...

11 min read

Laravel 12 Macros: A Complete Guide

Macros in Laravel are one of the framework’s most powerful yet often underutilized features. They allow you to extend Laravel’s core classes with custom fu...

5 min read

Laravel Testing with Pest, Part 1: Setup, Configuration and Factories

Laravel Testing with Pest — Part 1 · Part 2 · Part 3 · Part 4 · Part 5 Tests are a second application. They need a database, cache, mailer, queue and files...

6 min read

Laravel Testing with Pest, Part 5: Architecture Tests, CI and Coverage

Laravel Testing with Pest — Part 1 · Part 2 · Part 3 · Part 4 · Part 5 Architecture tests can keep controllers from depending on infrastructure or enforce...

7 min read

Need someone to take responsibility for the next step?

Let’s talk about your project and define a scope that actually makes sense for your goals.