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

3.0.0(3w ago)12651MITPHPPHP &gt;=5.6

Since Oct 3Pushed 1mo 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 1w ago

READMEChangelog (10)Dependencies (10)Versions (22)Used By (1)

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 分布独占锁（推荐使用 `attemptUserLock()` / `withUserLock()`）
- [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

45

—

FairBetter than 91% of packages

Maintenance93

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

Recently: every ~280 days

Total

19

Last Release

22d ago

Major Versions

1.4.0 → 2.0.02022-10-12

2.9.0 → 3.0.02026-07-25

### 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 (110 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

568591.1k63](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.4M236](/packages/illuminate-broadcasting)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

367137.2k16](/packages/logiscape-mcp-sdk-php)

PHPackages © 2026

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