plancake/official-api-kit-php — pull request #1 by ntemple (2012-04-22 02:46:16+00:00)
Title: Throw exception on network errors and allow overriding network methods

Fixes error when the request object is not valid due to a network error - instead of a fatal error, an exception is thrown. In theory, you can also override the new sendHTTPRequest method to use a different transport other than file_get_contents. For example, using curl if file_get_contents is disabled.