iggi/curlrequest

A helper class to quickly launch your curl requests.

v3.0.1 2021-02-08 23:03 UTC

This package is auto-updated.

Last update: 2024-10-09 06:48:53 UTC


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