This page contains PHP snippets/components I wrote over time that you might find useful. Unless otherwise stated in the file itself, they are licensed under the MIT license. They're mostly untested and might not work below PHP 7.