Easy sdk HttpClient扩展组件包
通过composer引入扩展包
composer require f-oris/easy-sdk-httpclient:^2.0Publish配置信息
php artisan vendor:publish --provider="Foris\Easy\Sdk\HttpClient\ServiceProvider"通过服务容器,获取HttpClient实例,按照easy-httpclient使用说明进行调用即可
<?php
$app = new \Foris\Easy\Sdk\Application();
$app->get('http_client')->request('http://url');MIT License
Copyright (c) 2019-present F.oris [email protected]