bobel / helpers
Helpful library for operating with URI, Arrays, Dates, Links and Text.
v1.0.8
2021-05-22 05:41 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^8.4
README
Library of helpful methods for PHP.
- DateTime Helper
- Enumerable Helper
- Link Helper
- Numeric Helper
- Text Helper
- Uri Helper
Just install the package and it is ready to use!
Requirements
- PHP >= 7.1
Installation
composer require bobel/helpers
Usage
echo \Bobel\Helpers\Text::getRandomString($length = 16); // Outputs Fb4tUW78cUuZZdPS echo \Bobel\Helpers\Numeric::formatPrice(4000200.5); // Outputs 4 000 200.50 \Bobel\Helecho pers\Link::setParam('param1', 'newValue', 'https://fake.url/?param1=value1¶m2=value2') // Outputs https://fake.url/?param1=newValue¶m2=value2
Credits
- Dmitrii Litovchenko https://www.linkedin.com/in/dmitrii-litovchenko