framesnpictures/el-helper

Re-usable Helper Libraries

v1.1 2023-06-06 18:07 UTC

This package is auto-updated.

Last update: 2024-12-06 21:35:34 UTC


README

CircleCI

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.