Recipes for Decoupling
What coupling is and why it hurts. A compilation of strategies to decouple your domain code from infrastructure details.
Modern PHP: types, tooling, and architecture beyond the framework.

What coupling is and why it hurts. A compilation of strategies to decouple your domain code from infrastructure details.

The new Functional Programming language build-in for PHP.

Mocking is useful, but 'what to mock' usually turns out to be a more complicated than expected if you don't treat this carefully.

Using array_merge inside a loop is a performance killer. The spread operator will help you to improve this by flatting the array.

Argument unpacking, function variable argument list, and variadics function.

Matthias Noback's practical guide to flexible, readable object-oriented code, useful in any OO language.

Matthias Noback on levelling up your coding and architecture: modern PHP features with a genuinely modular design.

Why declaring strict_types in PHP improves code readability and prevents silent type coercion bugs.

Clear contracts, isolated side effects, testability, low complexity and cognitive load, code fluidity, and confidence in yourself.

Fabien Potencier's official guide to building web applications with Symfony 5, covering the framework from scratch to production deployment.
Phel, a functional Lisp that compiles to PHP. Persistent data structures, macros and a REPL, built on top of the PHP ecosystem.
Gacela normalises the entry point of each module in your PHP application, so modules talk to each other without leaking domain logic.