Configuration Is a Contract, Not a Bag of Variables
A practical guide to application configuration: keep deploy-specific values out of code, parse and validate configuration at startup, make precedence explicit, and treat secrets as secrets.
Loading...
Topic
PHP notes from building and running real, long-lived production systems.
A practical guide to application configuration: keep deploy-specific values out of code, parse and validate configuration at startup, make precedence explicit, and treat secrets as secrets.
PHP CLI can read environment variables directly, but PHP-FPM intentionally clears worker environments by default. Here is how to pass only the variables your application actually needs.