framesnpictures / el-helper
Re-usable Helper Libraries
Installs: 3 667
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8
- illuminate/support: >=8
Requires (Dev)
- orchestra/testbench: >=6
- phpunit/phpunit: ^9.5
README
Number of helpers to be used in other modules.
The following helpers are currently in use:
Arr Helper
Introduces hash
function that generates the same hash for the array with the same content.
It extends Laravel's Arr object.
Flg Helper
Allows manipulation of binary flags. Allows to check for the given flag is enabled in integer value, as well as adding and removing the values.
Iof Helper
This helper checks if the given object implements the the particular functionality. It does that in various way including checking implemented interfaces, having a particular properties or methods exposed.
Obj Helper
This helper allow the manipulation of the objects or reading certain properties of the given objects.
Str Helper
This helper extends the Laravel's Str
object and "fixes" few edge cases for the camel
and snake
methods.
Additionaly it introduces new isAllCaps
methods. Please see the tests for additional edge cases covered.