承接 bafs/illuminate-light-collections 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-27