libphutil is a collection of utility classes and functions for PHP WWW: https://secure.phabricator.com/book/libphutil/