https://github.com/sparkison/laravel-helpers
https://github.com/sparkison/laravel-helpers
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sparkison/laravel-helpers
- Owner: sparkison
- License: mit
- Created: 2019-02-05T18:36:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T16:53:38.000Z (over 6 years ago)
- Last Synced: 2024-11-13T16:58:57.356Z (7 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helpers
[](https://www.codacy.com/app/laravel-enso/Helpers?utm_source=github.com&utm_medium=referral&utm_content=laravel-enso/Helpers&utm_campaign=badger)
[](https://styleci.io/repos/85466970)
[](https://packagist.org/packages/laravel-enso/helpers)
[](https://packagist.org/packages/laravel-enso/helpers)
[](https://packagist.org/packages/laravel-enso/helpers)Helper classes dependency for [Laravel Enso](https://github.com/laravel-enso/Enso).
### Includes
#### Classes
- An abstract `Enum` class 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 `Obj` class, 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: `EnsoException` is 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` - adds `whereActive()` and `whereDisabled()` scopes, `isActive()` and `isDisabled()` helpers, for models that have a boolean `is_active` property
### Usage
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/packages/helpers.html)
### Contributions
are welcome. Pull requests are great, but issues are good too.
### License
This package is released under the MIT license.