hejunjie/tools
Composer 安装命令:
composer require hejunjie/tools
包简介
A PHP utility library that encapsulates commonly used operations for strings, arrays, files, network requests, image processing, and various helper functions (such as phone carrier lookup and ID-based address resolution) frequently encountered in daily development. More features are being continuous
关键字:
README 文档
README
English|简体中文🚀 A PHP utility library that encapsulates commonly used operations for strings, arrays, files, network requests, image processing, and various helper functions (such as phone carrier lookup and ID-based address resolution) frequently encountered in daily development. More features are being continuously added...
🧨 Starting from
v2.0.0, this package has undergone a major structural overhaul. It has been split into multiple standalone packages, allowing for more flexible combinations and a lighter usage experience!
🧱 Split Explanation
Originally, all features were bundled in a single repository, which made it convenient to use but not ideal for modular maintenance and independent feature reuse.
Therefore, I’ve split them into the following 9 standalone Composer packages:
| packages | describe |
|---|---|
hejunjie/utils |
A lightweight and practical PHP utility library that offers a collection of commonly used helper functions for files, strings, arrays, and HTTP requests—designed to streamline development and support everyday PHP projects. |
hejunjie/cache |
A layered caching system built with the decorator pattern. Supports combining memory, file, local, and remote caches to improve hit rates and simplify cache logic. |
hejunjie/china-division |
Regularly updated dataset of China's administrative divisions with ID-card address parsing. Distributed via Composer and versioned for use in forms, validation, and address-related features |
hejunjie/error-log |
An error logging component using the Chain of Responsibility pattern. Supports multiple output channels like local files, remote APIs, and console logs—ideal for flexible and scalable logging strategies. |
hejunjie/mobile-locator |
A mobile number lookup library based on Chinese carrier rules. Identifies carriers and regions, suitable for registration checks, user profiling, and data archiving. |
hejunjie/address-parser |
An intelligent address parser that extracts name, phone number, ID number, region, and detailed address from unstructured text—perfect for e-commerce, logistics, and CRM systems. |
hejunjie/url-signer |
A PHP library for generating URLs with encryption and signature protection—useful for secure resource access and tamper-proof links. |
hejunjie/google-authenticator |
A PHP library for generating and verifying Time-Based One-Time Passwords (TOTP). Compatible with Google Authenticator and similar apps, with features like secret generation, QR code creation, and OTP verification. |
hejunjie/simple-rule-engine |
A lightweight and flexible PHP rule engine supporting complex conditions and dynamic rule execution—ideal for business logic evaluation and data validation. |
💡 Why split it this way?
The main goal is to separate feature modules more clearly, while allowing users to:
- Import only the packages they need, reducing bloat
- Maintain only the components they use, with clearer dependencies
- Provide each module with independent documentation, versioning, and update plans
- Reduce coupling to better support future feature evolution
📦 Installation
If you want to get all features at once, simply continue using this package:
composer require hejunjie/tools
Installing it will automatically include all the sub-packages mentioned above, with no extra configuration needed.
Of course, you can also choose to install any individual package as needed:
composer require hejunjie/cache composer require hejunjie/error-log
🧪 PHP Version Requirement
This suite of tools requires PHP >= 8.1.
❤️ About Me
This integrated package is a collection of tools I’ve refined through multiple real-world projects.
It has now been gradually split into several smaller packages, and I may continue to maintain, simplify, and optimize it over time.
You're very welcome to use it — and feel free to open an issue or submit a PR 🚀.
hejunjie/tools 适用场景与选型建议
hejunjie/tools 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.07k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2024 年 10 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「tools」 「utilities」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hejunjie/tools 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hejunjie/tools 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hejunjie/tools 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A set of useful PHP classes.
A Laravel package to retrieve data from Google Search Console
A collection of enhancements and utilities for the Silverstripe UserForms module
GHT D-Tools Bundle
Allow KoolReport to use twig template engine to render view
Asynchronous MQTT client built on React
统计信息
- 总下载量: 2.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-17