Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 833 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 833 Bytes

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