PHPackages                             bafs/illuminate-light-collections - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bafs/illuminate-light-collections

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bafs/illuminate-light-collections
=================================

Illuminate collection, without hundreds of Illuminate contracts

06PHP

Since Aug 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/BafS/illuminate-light-collections)[ Packagist](https://packagist.org/packages/bafs/illuminate-light-collections)[ RSS](/packages/bafs-illuminate-light-collections/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Illuminate Light Collections
============================

[](#illuminate-light-collections)

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
-------

[](#install)

```
composer req bafs/illuminate-light-collections
```

Why?
----

[](#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?
--------------------------------------------------

[](#i-dont-like-monkey-patching-can-i-remove-it-too)

Yes, it's also possible to disable the monkey patching from the [Macroable](https://github.com/illuminate/macroable) library (`illuminate/macroable`). To do so, use the [Demacroable](https://github.com/BafS/Demacroable) package (`bafs/illuminate-demacroable`) in your project (it will replace the Macroable trait with an empty one).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/837170204c2dc6beffb28cfca8ff9036709ac38d5f5f16ab2b8b8a7cb025c089?d=identicon)[BafS](/maintainers/BafS)

---

Top Contributors

[![BafS](https://avatars.githubusercontent.com/u/588205?v=4)](https://github.com/BafS "BafS (1 commits)")

---

Tags

illuminatelaravel

### Embed Badge

![Health badge](/badges/bafs-illuminate-light-collections/health.svg)

```
[![Health](https://phpackages.com/badges/bafs-illuminate-light-collections/health.svg)](https://phpackages.com/packages/bafs-illuminate-light-collections)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
