minhkhoablieu / iamlazy
Package provides convenient support functions such as isOdd, isEven and more.
v1.0.3
2024-04-08 12:07 UTC
Requires
- php: ^5.3
Requires (Dev)
- phpunit/phpunit: ^11.0
README
Description
LazyLib is a small library designed to help programmers save time and effort by providing simple functions for common tasks. You don't need to reinvent the wheel - just import and use.
Installation
composer require minhkhoablieu/iamlazy
Available Functions
isOdd
use iAmLazy\HelpMe; HelpMe::isOdd(5)
isEven
use iAmLazy\HelpMe; HelpMe::isEven(8)
isJson
use iAmLazy\HelpMe; HelpMe::isJson('{"name":"abc", "email": "abc@gmail.com"}')
flatten
use iAmLazy\HelpMe; HelpMe::flatten([[1, 2], [2, 3]])
isPrime
use iAmLazy\HelpMe; HelpMe::isPrime(7)
Contribution
If you have suggestions or would like to contribute to the library, please open an issue or create a pull request on GitHub.
License
This library is released under the MIT License. See the LICENSE file for more details.