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 exceptions now.Ā Read this blog post for more details.
The second one isĀ rectorphp/rector.Ā It is in fact mentioned in the documentation for the above library.Ā Rector is a refactoring (reconstruction and upgrade) tool that can easily change large chunks of your code.Ā Think of function renaming, parameter changes, and such.Ā Read these blog posts for more details: part 1, part 2, and part 3.
Very handy!