PHPackages                             zxf/utils - 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. zxf/utils

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

zxf/utils
=========

现代化的 PHP 工具包，包含强大的 DOM 操作库、数据转换和一些常用的类库、HTTP网络请求、代码压缩、通用函数集和实用工具等

v1.0.2(1mo ago)08MITPHPPHP &gt;=8.2

Since Nov 26Pushed 1mo agoCompare

[ Source](https://github.com/zhaoxianfang/utils)[ Packagist](https://packagist.org/packages/zxf/utils)[ Fund](https://yoc.cn)[ RSS](/packages/zxf-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

通用工具包和通用函数集
===========

[](#通用工具包和通用函数集)

[![](https://camo.githubusercontent.com/ca2f8676f0592f8e29daaf79e70c32fb67af22cf8055deab7c7d73dbdea24125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a78662f7574696c73)](https://camo.githubusercontent.com/ca2f8676f0592f8e29daaf79e70c32fb67af22cf8055deab7c7d73dbdea24125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a78662f7574696c73) [![](https://camo.githubusercontent.com/1fb5d57ee2e57d58d733ad3bf189393a96e3154816834ef26db5a0d0f9461b88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7a68616f7869616e66616e672f7574696c732e737667)](https://camo.githubusercontent.com/1fb5d57ee2e57d58d733ad3bf189393a96e3154816834ef26db5a0d0f9461b88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7a68616f7869616e66616e672f7574696c732e737667) [![](https://camo.githubusercontent.com/42313b0aebced6ecc1e1e1c0df21e8d1915d313f279abd75fec326a776834b43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7a68616f7869616e66616e672f7574696c732e737667)](https://camo.githubusercontent.com/42313b0aebced6ecc1e1e1c0df21e8d1915d313f279abd75fec326a776834b43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7a68616f7869616e66616e672f7574696c732e737667) [![](https://camo.githubusercontent.com/2aa36cf4dc5fc19febcffb6615038ecb2758285f52bbd6e1caaec518f3d60a2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f7a68616f7869616e66616e672f7574696c732e737667)](https://camo.githubusercontent.com/2aa36cf4dc5fc19febcffb6615038ecb2758285f52bbd6e1caaec518f3d60a2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f7a68616f7869616e66616e672f7574696c732e737667) [![](https://camo.githubusercontent.com/801d0e57bd762ab0acc7cf123cd08bed8171e0663a637a1b94880659ff721ca4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7a68616f7869616e66616e672f7574696c732e737667)](https://camo.githubusercontent.com/801d0e57bd762ab0acc7cf123cd08bed8171e0663a637a1b94880659ff721ca4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7a68616f7869616e66616e672f7574696c732e737667) [![](https://camo.githubusercontent.com/e25fe3f6ce33a61866518e6e9ce861230b8800b9bb87869cc91a8090b46e1c07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a68616f7869616e66616e672f7574696c732e737667)](https://camo.githubusercontent.com/e25fe3f6ce33a61866518e6e9ce861230b8800b9bb87869cc91a8090b46e1c07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a68616f7869616e66616e672f7574696c732e737667)

📦 安装
----

[](#-安装)

```
composer require zxf/utils
```

函数
--

[](#函数)

```
// 极速并发UUID生成器
uuid():string
```

强大的DOM操作库
---------

[](#强大的dom操作库)

[🇺🇸 Dom README.md](src/Dom/README.md)

[🇨🇳 Dom 操作库 中文 README.md](src/Dom/README_CN.md)

BarCode 一维条形码
-------------

[](#barcode-一维条形码)

[一维条形码文档](src/BarCode/README.md)

QrCode 二维码
----------

[](#qrcode-二维码)

[二维码文档](src/QrCode/README.md)

Xml 转换处理
--------

[](#xml-转换处理)

[查看文档](src/Xml/readme.md)

Minify 代码压缩
-----------

[](#minify-代码压缩)

[查看文档](src/Minify/README.md)

Image 图片处理
----------

[](#image-图片处理)

Http 网络请求
---------

[](#http-网络请求)

Crypto 加密解密
-----------

[](#crypto-加密解密)

Data 数据转换、Tree树形结构、大数计算
-----------------------

[](#data-数据转换tree树形结构大数计算)

更多
--

[](#更多)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~31 days

Total

7

Last Release

47d ago

Major Versions

v0.0.4 → v1.0.02026-02-11

PHP version history (2 changes)v0.0.1PHP ^8.1

v0.0.4PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c26bb336eb6fbd64c05a51ff989fcc8381c8fcb87fbb8915b4ac1c826d54f7d6?d=identicon)[zxf](/maintainers/zxf)

---

Top Contributors

[![zhaoxianfang](https://avatars.githubusercontent.com/u/28860960?v=4)](https://github.com/zhaoxianfang "zhaoxianfang (1 commits)")

---

Tags

aesarraycryptocurlecchttpimagickrsautilhttpphpqrcodexmlarraycurlcsscryptoimagehtmldomtoolfileoauthtreebarcodeutiltoolsutilsHTML ParserXpathphp8.3web-scraperphp82xml-parserphp84

### Embed Badge

![Health badge](/badges/zxf-utils/health.svg)

```
[![Health](https://phpackages.com/badges/zxf-utils/health.svg)](https://phpackages.com/packages/zxf-utils)
```

###  Alternatives

[php-curl-class/php-curl-class

PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.

3.3k9.5M353](/packages/php-curl-class-php-curl-class)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[duzun/hquery

An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+

363146.3k4](/packages/duzun-hquery)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[svyatov/curlwrapper

Flexible wrapper class for PHP cURL extension

5596.6k3](/packages/svyatov-curlwrapper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
