Libraries tagged by defensive programming
roave/dont
405 Favers
259500 Downloads
259500 Downloads
A small set of traits that can be used to prevent misuse of your objects
stougeiro/immutable
0 Favers
11 Downloads
11 Downloads
Immutable data structures for PHP arrays, providing strict separation between lists and objects, safe access semantics, key validation, and a clean, predictable API for defensive and expressive programming.
fleshgrinder/assertion
4 Favers
25474 Downloads
25474 Downloads
Library to ease defensive and design by contract (DbC) programming with assert() in PHP.
scaleupstack/easy-object
0 Favers
15 Downloads
15 Downloads
Convenient object handling for a modern, defensive and strict style of programming in PHP without boilerplate code. E.g. default getters, typed properties, named/default constructors.