jawira / the-lost-functions
Collection of convenience functions.
v1.7.0
2024-03-12 20:44 UTC
Requires
- php: ^8
Requires (Dev)
README
Collection of convenience functions for PHP.
Functions
- array_find() - 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.