boing6002/helpers
Composer 安装命令:
composer require boing6002/helpers
包简介
Helper classes dependency for Laravel Enso
关键字:
README 文档
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, a Laravel model that can even have loaded relationships and more. It provides a suite of helper functions, such as:all(),__toString(),toJson(),toArray(),get($key),set($key, $value),has($key),keys(),values()
- A
JsonParserclass that takes a JSON file as its constrctor's argument, and can parse and transform the file to:- object
- array
- JSON string
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 - A
FileMissingException, a child ofEnsoException - A
JsonParseException, a child ofEnsoException - A
MorphableConfigException, a child ofEnsoException
Traits
ActiveState- 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.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-24