PHP Safe and Rector
I came across a couple of very interesting PHP libraries today. The first one is thecodingmachine/safe. This library wraps all PHP functions that return false on failure into another function that throws the exception instead. Think of all those file_get_contents() and json_decode() situations you had to code around. Not anymore. You can easily have them throw … Continue reading PHP Safe and Rector