Download the PHP package 200mph/curl-wrap without Composer
On this page you can find all versions of the php package 200mph/curl-wrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download 200mph/curl-wrap
More information about 200mph/curl-wrap
Files in 200mph/curl-wrap
Download 200mph/curl-wrap
More information about 200mph/curl-wrap
Files in 200mph/curl-wrap
Vendor 200mph
Package curl-wrap
Short Description Lightweight CURL wrapper for PHP CURL
License MIT
Homepage https://github.com/200MPH/curl-wrap
Package curl-wrap
Short Description Lightweight CURL wrapper for PHP CURL
License MIT
Homepage https://github.com/200MPH/curl-wrap
Please rate this library. Is it a good library?
Informations about the package curl-wrap
CURL PHP Wrapper
This is simple wrapper for PHP CURL.
<?php
use thm\curl\Curl;
// Include auto loader for testing purpose.
// I assume you've already done it in your project.
require_once '../vendor/autoload.php';
// Initialize object
$curl = new Curl("http://api.nbp.pl/api/exchangerates/tables/A/today/?format=json");
// Change default timeout (5 seconds)
$curl->setTimeout(2);
// If you need pass parameters, simple call
// $curl->setParameters(['foo' => 1, 'bar' => 2, 'baz' => 3]);
// Get results
$results = $curl->call();
// If you want to call without getting results
// $curl->call(false);
var_dump($results);
var_dump($curl->getErrorNo());
var_dump($curl->getError());
All versions of curl-wrap with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package 200mph/curl-wrap contains the following files
Loading the files please wait ....