chiefgroup/laravel-guzzle
chiefgroup-laravel-guzzle
安装
$ composer require chiefgroup/laravel-guzzle
配置文件
generate config file
$ php artisan vendor:publish --provider="Chiefgroup\Http\Providers\ServiceProvider"
使用
// Method : get\put\post\patch\delete
$result = LaravelGuzzleHttp::get('api/users');
$data = $headers = [];
LaravelGuzzleHttp::post('http://xxx.com', $data, $headers);
dd($result);
License
The MIT License (MIT). Please see License File for more information.
Related Packages
spondonit/zttp
A developer-experience focused HTTP client, optimized for most common use cases.
6,283
0
carsdotcom/php-request-class
Structure the logic around Guzzle API requests into object-oriented classes
32,155
2
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 2.0.6 | ^6.0 || | MIT | |
| 2.0.5 | ^6.0 || | MIT | |
| 2.0.4 | ^6.0 || | MIT | |
| 2.0.3 | ^6.0 || | MIT | |
| 2.0.2 | ^6.0 || | MIT | |
| 2.0.1 | ^6.0 || | MIT | |
| 2.0.0 | ^6.0 || | MIT | |
| 1.0.4 | ^6.0 || | MIT | |
| 1.0.3 | ^6.0 || | MIT | |
| 1.0.2 | ^6.0 || | MIT | |
| 1.0.1 | ^6.0 || | MIT | |
| 1.0.0 | ^6.0 || | MIT |