f-oris/easy-sdk-httpclient

Easy sdk http-client component.

2.0.0 2021-04-24 13:40 UTC

This package is auto-updated.

Last update: 2024-10-24 21:35:30 UTC


README

Easy sdk HttpClient扩展组件包

Latest Stable Version Total Downloads Latest Unstable Version License

安装

通过composer引入扩展包

composer require f-oris/easy-sdk-httpclient:^2.0

Publish配置信息

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');

License

MIT License

Copyright (c) 2019-present F.oris us@f-oris.me