jawira / the-lost-functions
Collection of convenience functions.
v1.5.0
2022-09-11 08:08 UTC
Requires
- php: >=7.3
Requires (Dev)
- ext-mbstring: *
- ergebnis/composer-normalize: ^2.13
- friendsofphp/php-cs-fixer: ^3.0
- jawira/skeleton: ^2.5
- phpunit/phpunit: ^9.5
README
Collection of convenience functions for PHP.
Functions
- array_search_callback() - Search an element using a callback.
- get_short_class() - Get the short name of an object.
- str_bytes() - Get string length in bytes.
- temp_file(): - Create temporary file.
- throw_unless() - Throws an exception if an assertion is false.
- year() - Returns current year.
- year_range() - Range between start year and current year.
How to install
composer require jawira/the-lost-functions
Contributing
If you liked this project, ⭐ star it on GitLab.
License
This library is licensed under the MIT license.