sparkison / laravel-helpers
Helper classes dependency for Laravel Enso
Installs: 23
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/sparkison/laravel-helpers
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2025-01-23 07:12:27 UTC
README
Helper classes dependency for Laravel Enso.
Includes
Classes
- An abstract
Enumclass which can be used to build an enumeration out of an array or a config file and comes with a set of helper functions - An
Objclass, with a constructor for building an object from an array, that provides a suite of helper functions, such as:all(),__toString(),toJson(),toArray(),get($key),set($key, $value),has($key),keys(),values()and more
Exceptions
- A generic exception:
EnsoExceptionis available also with a Facade. This exception is extended by all the other Enso specific exceptions and it is not reported by the Laravel's Exception Handler
Traits
IsActive- addswhereActive()andwhereDisabled()scopes,isActive()andisDisabled()helpers, for models that have a booleanis_activeproperty
Usage
Be sure to check out the full documentation for this package available at docs.laravel-enso.com
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.