PHPackages                             flc/http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. flc/http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

flc/http
========

HTTP 客户端工具

v0.0.1(5y ago)14[1 issues](https://github.com/flc1125/http/issues)MITPHP

Since Jul 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/flc1125/http)[ Packagist](https://packagist.org/packages/flc/http)[ RSS](/packages/flc-http/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PHP HTTP 客户端
============

[](#php-http-客户端)

> 该扩展基于 Laravel 的 [illuminate/http ](https://github.com/illuminate/http) 扩展进行简化独立而得，核心源码更多为官方源码。

安装
--

[](#安装)

```
composer require flc\http

```

> 非稳定版，请勿用于生产

使用
--

[](#使用)

> 使用文档，拷贝官方的，:sweat\_smile: :sweat\_smile:

### 创建请求

[](#创建请求)

你可以通过 `get`、 `post`、 `put`、 `patch` 和 `delete` 方法来创建请求。首先，让我们先看一下如何发出一个基础的 `GET` 请求：

```
