arshahin/utility-kit
最新稳定版本:v1.1.5
Composer 安装命令:
composer require arshahin/utility-kit
包简介
A PHP utility helper package for general and Laravel-based projects
README 文档
README
A lightweight collection of reusable PHP helper functions designed to simplify common tasks.
Use it in any PHP project or integrate directly into Laravel. Clean, minimal, and extensible.
📦 Installation
Require the package via Composer:
composer require arshahin/utility-kit
⚙️ Usage
Import and use the helper methods statically:
use ARShahin\UtilityKit\Helpers\StringHelper; StringHelper::startsWith("Laravel", "Lar"); // true
You can also use the helper functions if you have configured them with Laravel's service provider and facade system.
✏️ Contributing
We welcome contributions! If you'd like to contribute:
- Create a new branch.
- Add your helper function.
- ✅ Make sure to include:
- Proper docblocks for your functions.
- Return types for all methods.
- Follow PSR-12 coding standards for formatting and structure.
- PHPUnit test cases for your function.
- Submit a pull request.
Example requirement:
/** * Check if a string is palindrome. * * @param string $string * @return bool */ public static function isPalindrome(string $string): bool
✅ Testing
Run the test suite using PHPUnit:
vendor/bin/phpunit tests/
vendor/bin/phpunit --testdox
Ensure all test cases pass before submitting your PR.
🚀 Roadmap
- String helper methods
- Array helper methods
- Date/time utilities
- More facades & Laravel integrations
✨ License
MIT License. Feel free to use, modify, and distribute.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-17