perform many deploys to staging, prod, ... II. Dependencies Your application explicitly declares userland and platform deps. III. Configuration Read from $_ENV: API keys, database credentials, SMTP hosts, ... XI. Logging file_put_contents("php://stderr", "Yay log");
getenv('EMAIL_HOST'), getenv('EMAIL_PORT')?:25 ) -‐>setUsername(getenv('EMAIL_USERNAME')) -‐>setPassword(getenv('EMAIL_PASSWORD')) ; Assumption: same code but different configuration per deployment target
similar as possible. SQLite ≠ MySQL Apache ≠ Nginx File based sessions ≠ Redis based sessions If apt-‐get or brew don't get the job done on your box: Vagrant is always your friend!