PHPackages                             tuuz/net - 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. tuuz/net

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

tuuz/net
========

TuuzNet is a lightweight cURL-based HTTP client library for PHP. Provides clean static interface for GET, POST (JSON/Form/File/Binary), PUT, DELETE requests with customizable headers, timeouts, and SSL configuration.

v1.0.0(yesterday)00MITPHPPHP ^8.0

Since Jul 31Pushed yesterdayCompare

[ Source](https://github.com/tobycroft/php_tuuz_net)[ Packagist](https://packagist.org/packages/tuuz/net)[ Docs](https://github.com/tobycroft/php_tuuz_net)[ RSS](/packages/tuuz-net/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

TuuzNet
=======

[](#tuuznet)

轻量级 cURL 基础的 PHP HTTP 客户端库，提供简洁的静态接口，支持 GET、POST（JSON/Form/File/Binary）、PUT、DELETE 等常见请求方式。

[![PHP Version](https://camo.githubusercontent.com/0c6941d0cf0d361143137128a49e47e6781355f88449b524c1bee8a4b0e3151f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Packagist](https://camo.githubusercontent.com/2fdcb4b1435866068edba8247ed82119760d751179a53320d7f56d4b7ecf9f28/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d7475757a2532466e65742d626c7565)](https://packagist.org/packages/tuuz/net)

---

功能特性
----

[](#功能特性)

- ✅ `GET` / `POST` / `PUT` / `DELETE` 常用请求方法
- ✅ JSON 请求 (`PostJson`)
- ✅ 表单请求 (`PostForm`)
- ✅ 文件上传 (`PostFile`)
- ✅ 二进制流传输 (`PostBinary`)
- ✅ 自定义 Header、超时、Query 参数
- ✅ 完整异常处理与超时检测
- ✅ 默认禁用 SSL 校验（内网/调试友好）
- ✅ 零依赖，仅需 `ext-curl` + `ext-json`
- ✅ **内置 Conventional Commits 提交信息分析器，可自动生成包描述、版本号建议、CHANGELOG**

---

安装
--

[](#安装)

通过 Composer 安装：

```
composer require tuuz/net
```

要求：

- PHP &gt;= 8.0
- 扩展：`curl`, `json`

---

快速开始
----

[](#快速开始)

```
