tlwl / http-client
http client for the request internal service.
Installs: 105
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
pkg:composer/tlwl/http-client
Requires
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0|~5.8.0
- monolog/monolog: ^1.24
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ~5 || ~7
This package is auto-updated.
Last update: 2025-11-06 02:49:09 UTC
README
http client for the request internal service.
运行环境
- php >= 7.0
- composer
- laravel || lumen >= 5.1
如何安装
$ composer require tlwl/http-client
添加 service provider(optional. if laravel < 5.5 || lumen)
// laravel < 5.5 Tlwl\HttpClient\HttpClientServiceProvider::class // lumen $app->register(Tlwl\HttpClient\HttpClientServiceProvider::class);
添加 alias(optional. if laravel < 5.5)
'HttpClient'=>Tianwolf\HttpClient\Facades\HttpClient::class,
配置文件&数据表生成
$ php artisan vendor:publish --provider="Tlwl\HttpClient\HttpClientServiceProvider"
lumen 用户请手动复制
随后,请在 config 文件夹中完善配置信息。
具体使用说明请传送至 https://github.com/tian-wolf/laravel-http-client