bafs/illuminate-light-collections
Composer 安装命令:
composer require bafs/illuminate-light-collections
包简介
Illuminate collection, without hundreds of Illuminate contracts
README 文档
README
This package provides Illuminate Collections minus hundreds of contracts from
Illuminate\Contracts that are not used by this library.
This library can be used for external libraries or projects that don't depend on Laravel framework.
Install
composer req bafs/illuminate-light-collections
Why?
Illuminate collections is a handy library to work will collections, but it requires
illuminate/contracts which provides hundreds of contracts from the Illuminate framework
and that are not useful when working outside the Laravel ecosystem. Only 3 contracts are
used by Collections (Arrayable, CanBeEscapedWhenCastToString, Jsonable).
I don't like monkey patching, can I remove it too?
Yes, it's also possible to disable the monkey patching from the
Macroable library (illuminate/macroable).
To do so, use the Demacroable package
(bafs/illuminate-demacroable) in your project (it will replace the Macroable trait with an empty one).
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-27