PHPackages                             youhujun/php-tool-youhujun - 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. youhujun/php-tool-youhujun

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

youhujun/php-tool-youhujun
==========================

Tools for facilitating rapid development of PHP applications

v1.1.6(1mo ago)10MITPHPPHP ^8.2

Since Jan 4Pushed 1mo agoCompare

[ Source](https://github.com/youhujun/php-tool-youhujun)[ Packagist](https://packagist.org/packages/youhujun/php-tool-youhujun)[ RSS](/packages/youhujun-php-tool-youhujun/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (20)Versions (10)Used By (0)

youhujun/php-tool-youhujun
==========================

[](#youhujunphp-tool-youhujun)

 [📑 阅读文档](https://www.youhu.club/)| [🌐 参考博客](https://www.youhujun.com/)

项目简介
----

[](#项目简介)

[php-tool-youhujun](https://gitcode.com/youhujun/) 是为了提高php开发效率,无需关乎基础通用功能的实现,将精力聚焦于业务逻辑的开发而催生的.

项目功能
----

[](#项目功能)

本工具包提供了丰富的 PHP 开发常用功能,涵盖以下模块:

### 📊 数据处理

[](#-数据处理)

- **Excel**: Excel 文件的导入和导出功能

### 📅 日期时间

[](#-日期时间)

- **日历**: 公历与农历互转

### 🏷️ 二维码

[](#️-二维码)

- **二维码生成**: 支持多种格式的二维码生成

### 📨 消息服务

[](#-消息服务)

- **腾讯云短信**: 短信发送功能

### 🗺️ 地图服务

[](#️-地图服务)

- **腾讯地图**: 地图相关功能

### 🔐 微信生态

[](#-微信生态)

- **微信小程序**: 微信小程序登录
- **微信公众号**: 微信公众号网页授权
- **微信支付**: 微信 JSAPI 支付、支付回调解密

### 🎵 抖音生态

[](#-抖音生态)

- **抖音登录**: 抖音小程序和小游戏登录

### 🔒 加密解密

[](#-加密解密)

- **AES 加密**: AES 加密解密功能
- **RSA 加密**: RSA 公钥加密私钥解密功能

### ☁️ 云存储

[](#️-云存储)

- **七牛云存储**: 文件上传、删除、获取文件信息等

### 🔧 工具类

[](#-工具类)

- **雪花算法 ID**: 基于雪花算法的分布式唯一 ID 生成,支持自定义机器 ID 和起始时间
- **数据库分片**: 提供分库分表计算功能,支持灵活的分片策略配置

安装
--

[](#安装)

```
composer require youhujun/php-tool-youhujun
```

### 环境要求

[](#环境要求)

- PHP &gt;= 8.2
- 扩展: openssl, json, gd
- 依赖: godruoyi/php-snowflake (用于雪花算法 ID 生成)

使用
--

[](#使用)

**更多文档请查看[文档地址](https://www.youhujun.com/open-02/php-tool-youhujun/)**

测试
--

[](#测试)

### 安装测试依赖

[](#安装测试依赖)

```
composer install --dev
```

### 运行测试

[](#运行测试)

- 单独测试 Excel

```
composer test --testsuite Excel
```

- 单独测试 Calendar

```
composer test --testsuite Calendar
```

- 全部测试

```
composer test
```

> 注意: 部分功能模块(如微信支付、短信服务等)需要第三方服务的 Key 或 AppID,因此暂时不包含在自动测试中。

变更日志
----

[](#变更日志)

查看详细的版本变更记录,请访问 [CHANGELOG.md](CHANGELOG.md)

文档
--

[](#文档)

**更多详细文档请查看[文档地址](https://www.youhu.club/)**

许可证
---

[](#许可证)

MIT License

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance97

Actively maintained with recent releases

Popularity2

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 ~8 days

Total

9

Last Release

54d ago

PHP version history (2 changes)1.0.0PHP ^8.0.2

v1.1.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![youhujun](https://avatars.githubusercontent.com/u/34862444?v=4)](https://github.com/youhujun "youhujun (28 commits)")

---

Tags

httpphpapiserver

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/youhujun-php-tool-youhujun/health.svg)

```
[![Health](https://phpackages.com/badges/youhujun-php-tool-youhujun/health.svg)](https://phpackages.com/packages/youhujun-php-tool-youhujun)
```

###  Alternatives

[ciareis/bypass

Bypass for PHP provides a quick way to create a custom instead of an actual HTTP server to return prebaked responses to client requests. This is most useful in tests, when you want to create a mock HTTP server and test how your HTTP client handles different types of responses from the server.

11813.5k6](/packages/ciareis-bypass)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

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