Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 718 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 718 Bytes

CurlRequest - A curl helper

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