#PHP

Articles tagged PHP

All blog articles tagged PHP.

Error Handling as a Laravel Design Concern

Error handling is API design. A mobile client must know whether it can retry; a partner needs a stable explanation of a rejected request; an operator needs...

9 min read

Domain Events vs Eloquent Events in Laravel

Eloquent's created, updated, and saved events tell us that a row changed. They do not tell the application why it changed. A subscription renewal can exten...

7 min read

CQRS-Lite in Laravel: Separate Read and Write Models Without the Tax

At its useful core, CQRS is one rule: a write protects business rules and changes state; a read returns the shape a caller needs. Laravel already allows th...

9 min read

Background Work as Architecture: Laravel Jobs and Eventual Consistency

A queue does more than speed up an HTTP response. It introduces an asynchronous boundary: the request can say that an invoice is being prepared while the P...

10 min read

Actions, DTOs and Value Objects: Laravel's Pragmatic Middle

A Laravel application rarely becomes hard to change because one controller has a dramatic bug. It becomes hard to change because a business rule gradually...

9 min read

Turning a Composer Library into a Laravel Package

A framework-agnostic Composer library should not know that Laravel exists. Its classes should be usable in a CLI script, a Symfony application, or another...

12 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.