Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Laravel - Throw Exception If Environment Variable Not Set

Implement a defensive step in your Laravel framework by throwing an exception if an expected environment variable is not set, rather than reverting back to some default that is probably not appropriate.

Defensive PHP

A cheatsheet and links for defensive PHP.

Extremely Defensive PHP

A fantastic timestamped lecture on defensive PHP. Everyone should watch this!