carry0987/utils
Composer 安装命令:
composer require carry0987/utils
包简介
This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.
README 文档
README
This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.
Features
- Array manipulation and ordering
- String handling and sanitization
- Date-time formatting and conversions
- File and directory path normalization
- URL manipulation and redirection
- Custom HTTP headers setting
- Query parameter handling
- Input validation and filtering
Installation
This library can be easily installed via Composer. Run the following command to add it to your project:
composer require carry0987/utils
Usage
Utilize the static methods provided by the Utils class in your code without instantiating the class. Here's an example on how to use the array sorting feature:
use carry0987\Utils\Utils; $array = [ ['id' => 3, 'name' => 'Alice'], ['id' => 1, 'name' => 'Charlie'], ['id' => 2, 'name' => 'Bob'], ]; $sortedArray = Utils::sortData($array, 'ASC', 'id'); print_r($sortedArray);
For more detailed information on each method, refer to the inline comments in the source code.
Contributing
Contributions, issues, and feature requests are welcome. Feel free to check the issues page if you want to contribute.
License
This project is open-sourced software licensed under the MIT license.
carry0987/utils 适用场景与选型建议
carry0987/utils 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 178 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 carry0987/utils 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 carry0987/utils 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 178
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-04