Want to make PHP's exceptions more helpful to your users, even if they're speaking to it over a JSON API or command line script? github.com/paragonie/corn…
Note: v1.x of this library targets EOL versions of PHP. You'll ideally want to use version 2 at a minimum.
But anyway, consider this a holiday gift to the PHP community. (I might have proposed it to FIG, if I were a member, and wasn't wary of endless bikeshedding.)
So what does Corner do? It transforms thorny corner-case errors into something that developers will find more useful.
If you want to make your exceptions more useful, the methods that Corner adds to the Exception and Error classes should allow you to reproduce the awesomeness of Rust's error reporting.
If you want to be lazier, you can just link the end user to a specific page/section of your online documentation that pertains to that specific error message, so long as it discusses common causes and troubleshooting strategies.
Go through the plugins/extensions/whathaveyou for your favorite CMS/framework (especially eCommerce) and see which ones disable certificate validation for HTTPS requests.
random_compat exists so that your framework can use the newer PHP 7 CSPRNG API even if they support PHP 5. It's used by a lot of projects, including WordPress.
In a similar spirit, sodium_compat reimplements (most of) libsodium in pure PHP, and even supports 32-bit operating systems. Its purpose is to help projects transition toward PHP 7.2+ support.