jawira / the-lost-functions
Collection of convenience functions.
Installs: 77 086
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/jawira/the-lost-functions
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.