http client for the request internal service.
- php >= 7.0
- composer
- laravel || lumen >= 5.1
$ composer require tlwl/http-client
// laravel < 5.5
Tlwl\HttpClient\HttpClientServiceProvider::class
// lumen
$app->register(Tlwl\HttpClient\HttpClientServiceProvider::class);
'HttpClient'=>Tianwolf\HttpClient\Facades\HttpClient::class,
$ php artisan vendor:publish --provider="Tlwl\HttpClient\HttpClientServiceProvider"
lumen 用户请手动复制
随后,请在 config
文件夹中完善配置信息。
具体使用说明请传送至 https://github.com/tian-wolf/laravel-http-client