arshahin / utility-kit
A PHP utility helper package for general and Laravel-based projects
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/arshahin/utility-kit
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^10
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.