iggi / curlrequest
A helper class to quickly launch your curl requests.
v3.0.1
2021-02-08 23:03 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
README
Installation
Install the latest version with
$ composer require iggi/curlrequest
Basic Usage
<?php use Iggi\CurlRequest; $curlRequest = new CurlRequest(); $response = $curlRequest->get("https://ignatisd.gr/hello")->exec(); print_r($response->toArray()); /* array( "activeCookies" => string[][], "cookies" => string[][], "code" => number, "headers" => string[], "error" => string, "timing" => string, "body" => string ) */
Author
Ignatios Drakoulas - ignatisnb@gmail.com - https://twitter.com/ignatisd
License
CurlRequest is licensed under the MIT License - see the LICENSE file for details