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

dev-master 2018-04-23 15:11 UTC

This package is auto-updated.

Last update: 2024-11-29 05:44:48 UTC


README

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