Skip to content
← All series

SERIES

Twelve factors in practice

A series about the Twelve-Factor methodology applied to PHP projects, with one article per factor and examples in plain PHP and Hyperf.

3 articles

1

12 factors: one codebase, many deploys

Almost every project goes through this moment: it works on the machine of whoever wrote it, but breaks on the server. Sometimes it’s a password that only exists in a …

2

12 factors: dependencies declared, nothing assumed

“It works on my machine.” Almost always, that sentence hides a dependency nobody declared: a library installed by hand, a PHP extension that only exists on the laptop …

3

12 factors: config outside the code

Every team has seen a commit with the message “remove password”. The problem is that Git does not forget: the password is still in the history, within reach of anyone …