Download the PHP package jabranr/php-curl without Composer
On this page you can find all versions of the php package jabranr/php-curl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jabranr/php-curl
More information about jabranr/php-curl
Files in jabranr/php-curl
Package php-curl
Short Description A quick start PHP cURL library
License MIT
Homepage https://github.com/jabranr/php-curl
Informations about the package php-curl
PHP cURL
A simple PHP client for cURL operations.
Migrating from v1? Beware that v2 has breaking changes! Some of the API methods names have changed.
Simply import the library into your project. The best way to do so is to use Composer as following. Otherwise it can simply be downloaded from GitHub and added to the project.
Start using it straight away. (Following example assumes that it was installed via Composer)
Setting cURL options
API
The cURL class exposes following API:
getInfo
Get cURL request info. $option
needs to be a valid cURL constant. If none given then it will return an associative array.
getError
Get cURL request error message.
getErrorCode
Get cURL request error code.
getErrorMessage
Get cURL request error message.
getHttpCode
Get cURL request HTTP status code.
getTotalTime
Get total time taken for a cURL request.
getResponse
Get response for a cURL request.
License
Feel free to use and send improvements via pull requests. Licensed under the MIT License.
© Jabran Rafique – 2016 – 2017