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
Requires
- php: ^7.1.3
This package is auto-updated.
Last update: 2024-10-29 05:28:53 UTC
README
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