PHPackages                             konsulting/laravel-extend-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. konsulting/laravel-extend-collections

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

konsulting/laravel-extend-collections
=====================================

A few extensions to the Laravel Collection and Arr.

0.3.1(4mo ago)27.2k↓72%1MITPHPPHP ^8.2

Since Feb 6Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/konsulting/laravel-extend-collections)[ Packagist](https://packagist.org/packages/konsulting/laravel-extend-collections)[ RSS](/packages/konsulting-laravel-extend-collections/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (5)Versions (13)Used By (1)

Laravel Extend Collections
==========================

[](#laravel-extend-collections)

*A few extensions to the [Laravel](https://laravel.com) Collection and Arr.*

Installation
------------

[](#installation)

`composer require konsulting/laravel-extend-collections`

### Using Laravel

[](#using-laravel)

This package will auto-register the service provider.

### Not using Laravel

[](#not-using-laravel)

There is a simple namespaced helper function to assist with extending Collection and Arr.

```
// Inside your application code, run:

\Konsulting\Laravel\load_collection_extensions();
```

Arr Extensions
--------------

[](#arr-extensions)

- `fromDot` - convert an array where the keys are dot-notation indexed to a nested array

Collection extensions
---------------------

[](#collection-extensions)

- `dropEmpty` - drop items whose values are `empty()`
- `deep` - apply a function recursively through a collection, and through arrays/collections within it
- `dotGet` - retrieve an item using dot-notation
- `dotSet` - set an item using dot-notation
- `dotHas` - check if an item exists using dot-notation
- `dot` - now standard in Laravel as `dot`.
- `fromDot` - a little different to `undot` in Laravel.

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. We will accept contributions by Pull Request.

Please:

- Use the PSR-2 Coding Standard
- Add tests, if you’re not sure how, please ask.
- Document changes in behaviour, including readme.md.

Testing
-------

[](#testing)

We use [PHPUnit](https://phpunit.de)

Run tests using PHPUnit: `vendor/bin/phpunit`

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance75

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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.

###  Release Activity

Cadence

Every ~366 days

Recently: every ~11 days

Total

10

Last Release

137d ago

PHP version history (4 changes)0.1.0PHP ^7.0

0.1.3PHP ^7.0||^8.0

0.2.2PHP ^7.0|^8.0

0.3.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4703657?v=4)[Konsulting](/maintainers/konsulting)[@konsulting](https://github.com/konsulting)

---

Top Contributors

[![Keoghan](https://avatars.githubusercontent.com/u/6714599?v=4)](https://github.com/Keoghan "Keoghan (18 commits)")[![jocoDomino](https://avatars.githubusercontent.com/u/26391067?v=4)](https://github.com/jocoDomino "jocoDomino (1 commits)")

---

Tags

arrcollectiondot-notationlaravel

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/konsulting-laravel-extend-collections/health.svg)

```
[![Health](https://phpackages.com/badges/konsulting-laravel-extend-collections/health.svg)](https://phpackages.com/packages/konsulting-laravel-extend-collections)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.7k](/packages/illuminate-database)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M209](/packages/illuminate-broadcasting)

PHPackages © 2026

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