pecl-raphf is a reusable split-off of pecl_http's persistent handle and resource factory API. Documentation is available online at: http://php.github.io/pecl-php-raphf/