Curl Component

version
MIT License

The Curl Component contains methods that makes it easy to send HTTP requests and integrate with web APIs

Installation

composer require flextype-components/curl

Usage

use Flextype\Component\Curl\Curl;

Performs a curl GET request.

$res = Curl::get('http://site.com/');

Performs a curl POST request.

$res = Curl::post('http://site.com/login');

Gets information about the last transfer.

$res = Curl::getInfo();

License

See LICENSE


Download

Download on the Github