Topics
php

12 posts

Modern PHP: types, tooling, and architecture beyond the framework.

Recipes for Decoupling

Recipes for Decoupling

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

Phel: The Lisp That Compiles to PHP

Phel: The Lisp That Compiles to PHP

The new Functional Programming language build-in for PHP.

To Mock or Not to Mock

To Mock or Not to Mock

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

Never Use array_merge in a Loop

Never Use array_merge in a Loop

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

Typed Arrays in PHP

Typed Arrays in PHP

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

Object design style guide

Object design style guide

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

Advanced Web Application Architecture

Advanced Web Application Architecture

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

Strict Types in PHP

Strict Types in PHP

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

Final Classes in PHP | Java | Any

Final Classes in PHP | Java | Any

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

Symfony 5

Symfony 5

Fabien Potencier's official guide to building web applications with Symfony 5, covering the framework from scratch to production deployment.

Phel Lang

Phel, a functional Lisp that compiles to PHP. Persistent data structures, macros and a REPL, built on top of the PHP ecosystem.

Gacela Project

Gacela normalises the entry point of each module in your PHP application, so modules talk to each other without leaking domain logic.

Keyboard Shortcuts

Movement vim hjkl

hPrevious post← left
jScroll down↓ down
kScroll up↑ up
lNext post→ right
ggScroll to top
GScroll to bottom
nNext sectionnext heading
NPrevious sectionprevious heading

Go to g = go

ghHomego home
gbBloggo blog
grReadingsgo readings
gcCVgo cv

Actions

/⌘KSearchvim search
dToggle themedark mode
tToggle TOCtable of contents
iSwitch languagei18n
mToggle highlightmark text

General

?Show this help
EscClose
:Terminalvim command mode
↑↑↓↓←→←→BA???