Download the PHP package xiaojiays/curl without Composer
On this page you can find all versions of the php package xiaojiays/curl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xiaojiays/curl
More information about xiaojiays/curl
Files in xiaojiays/curl
Download xiaojiays/curl
More information about xiaojiays/curl
Files in xiaojiays/curl
Vendor xiaojiays
Package curl
Short Description Custom PHP Curl library for the Laravel 5 framework - developed by xiaojiays
License MIT
Homepage https://github.com/xiaojiays/curl
Package curl
Short Description Custom PHP Curl library for the Laravel 5 framework - developed by xiaojiays
License MIT
Homepage https://github.com/xiaojiays/curl
Please rate this library. Is it a good library?
Informations about the package curl
laravel-curl
a curl extension for laravel 5
Install
add this to the composer.json file:
{
"require": {
"xiaojiays/curl": "~0.3.0"
}
}
add this to the config/app.php file:
'providers' => [
Xiaojiays\Curl\CurlServiceProvider::class,
],
add this to the config/app.php file:
'facades' => [
'Curl' => Xiaojiays\Curl\Facades\Curl::class,
],
Usage
//send a get request
\Curl::get('http://www.xx.com');
//send a get request in 2 seconds
\Curl::getInSeconds('http://www.xx.com', 2);
//send a get request in 2 milliseconds
\Curl::getInMilliseconds('http://www.xx.com?a=1', 2)
//send a post request
\Curl::post('http://www.xx.com', ['a' => 1, 'b' => 2]);
//send a post request in 2 seconds
\Curl::postInSeconds('http://www.xx.com', ['a' => 1, 'b' => 2], 2);
//send a post request in 2 milliseconds
\Curl::postInMillieconds('http://www.xx.com', ['a' => 1, 'b' => 2], 2);
//download a file
\Curl::download('http://www.xx.com', '1.html');
//send multi get requests
\Curl::multiGet(['http://www.xx.com', 'http://www.mm.com']);
Notice
I haven't test it!All versions of curl with dependencies
PHP Build Version
Package Version
The package xiaojiays/curl contains the following files
Loading the files please wait ...