Skip to content

ignatisD/curlrequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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