PHPackages                             hongxunpan/php-tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hongxunpan/php-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hongxunpan/php-tools
====================

common php tools and functions

2.8.0(6mo ago)1236MITPHPPHP &gt;=5.6

Since Oct 3Pushed 6mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (19)Used By (0)

php 工具包
-------

[](#php-工具包)

### install

[](#install)

`composer require hongxunpan/php-tools`

### usage

[](#usage)

- [cli/Progress](readme/cli-progress.md) cli 终端下的任务进度显示
- [validate/Validator](readme/validate-validator.md) 验证器
- [lock/RedisLock](readme/redis-lock.md) redis 分布独占锁
- [draw/RedisDraw](readme/redis-draw.md) redis 抽奖
- [timeLimitOffers/RedisTimeLimitOffers](readme/redis-time-limit-offers.md) redis 抢购名额
- \[notice/DingTalk\] 钉钉消息推送
- [file/GetDirFiles](readme/get-dir-files.md) 扫描文件夹下的文件

### update-log

[](#update-log)

- `2.8.0` 2024-05-24 Performance
- `2.7.0` 2024-05-24 Sse supporter
- `2.6.0` 2024-03-06 OpensslEncrypt
- `2.5.0` 2024-02-18 cache remember
- `2.4.2` 2023-09-23 fix framework bugs &amp; add features
- `2.4.1` 2023-06-30 fix script autoload.php path
- `2.4.0` 2023-06-30 add Config &amp; Env
- `2.3.0` 2023-05-19 add get-dir-files
- `2.2.0` 2023-02-20 add ServerMonitor &amp; notice Interface
- `2.1.1` 2022-12-20 redis-lock transaction callable
- `2.1.0` 2022-10-16 add redis-time-limit-offers
- `2.0.0` 2022-10-13 separate out the db-connection
- `1.4.0` 2022-10-11 add mysql pdo connect &amp; abstract db connect
- `1.3.2` 2022-10-08 add function isUserInPool
- `1.3.1` 2022-10-06 fix high draw bugs
- `1.3.0` 2022-10-06 add redis-draw
- `1.2.0` 2022-10-05 add redis &amp;&amp; redis-lock
- `1.1.0` 2022-10-04 add validator
- `1.0.1` 2022-10-03 add readme doc
- `1.0.0` 2022-10-03 cli/progress

### todo

[](#todo)

- Monolog
- Server Ping/Pong

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.2% 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 ~70 days

Recently: every ~223 days

Total

17

Last Release

198d ago

Major Versions

1.4.0 → 2.0.02022-10-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/37c4ffcd9218f6b9722875da1ec37f20b0118651687de5798972f919bd2c1eb4?d=identicon)[HongXunPan](/maintainers/HongXunPan)

---

Top Contributors

[![HongXunPan](https://avatars.githubusercontent.com/u/25816508?v=4)](https://github.com/HongXunPan "HongXunPan (109 commits)")[![poaqaqaq](https://avatars.githubusercontent.com/u/29398755?v=4)](https://github.com/poaqaqaq "poaqaqaq (8 commits)")

### Embed Badge

![Health badge](/badges/hongxunpan-php-tools/health.svg)

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

###  Alternatives

[honeybee/honeybee

Library for implementing CQRS driven, event-sourced and distributed architectures.

222.1k4](/packages/honeybee-honeybee)

PHPackages © 2026

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