PHPackages                             myerscode/utilities-bags - 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. myerscode/utilities-bags

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

myerscode/utilities-bags
========================

A PHP helper utility class for fluent interaction and manipulation with collection data using immutable bags

2025.1.0(1y ago)17.9k—0%1MITPHPPHP ^8.4CI passing

Since Nov 30Pushed yesterday1 watchersCompare

[ Source](https://github.com/myerscode/utilities-bags)[ Packagist](https://packagist.org/packages/myerscode/utilities-bags)[ RSS](/packages/myerscode-utilities-bags/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (17)Used By (1)

Bags Utilities
==============

[](#bags-utilities)

> A PHP helper utility class for fluent interaction and manipulation of collection data, using immutable bags

[![Latest Stable Version](https://camo.githubusercontent.com/8b4811d72c8416d6eefe9716bcfe80b835c6434bfde01d609b9f447c6431fa47/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d626167732f762f737461626c65)](https://packagist.org/packages/myerscode/utilities-bags)[![Total Downloads](https://camo.githubusercontent.com/602b8667d89d312871c93ed41732df8c551a9b6b0f539b1e5bc368d7cad93c1a/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d626167732f646f776e6c6f616473)](https://packagist.org/packages/myerscode/utilities-bags)[![PHP Version Require](https://camo.githubusercontent.com/16e5de18ad9d5d062a04512287975fa6b0bd6dbd814a9e280bba31ab747229e9/687474703a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d626167732f726571756972652f706870)](https://packagist.org/packages/myerscode/utilities-bags)[![License](https://camo.githubusercontent.com/2522dec7d04d0985618f961c24f792e316352948ac50c15c030f66e025010bd5/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d626167732f6c6963656e7365)](https://packagist.org/packages/myerscode/utilities-bags)[![Tests](https://github.com/myerscode/utilities-bags/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/myerscode/utilities-bags/actions/workflows/tests.yml/badge.svg?branch=main)[![codecov](https://camo.githubusercontent.com/d03165832da0c8470d403abef0e0cc1f525602bcd2caa821bb870e357f201109/68747470733a2f2f636f6465636f762e696f2f67682f6d79657273636f64652f7574696c69746965732d626167732f67726170682f62616467652e7376673f746f6b656e3d59523059485645524e56)](https://codecov.io/gh/myerscode/utilities-bags)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.5

Install
-------

[](#install)

You can install this package via composer:

```
composer require myerscode/utilities-bags
```

[Usage](./docs/usage.md)
------------------------

[](#usage)

To see how to use the utility, view the usage guide [here](./docs/usage.md).

[Methods](./docs/methods.md)
----------------------------

[](#methods)

View all available methods in the documentation [here](./docs/methods.md).

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [Github Issue Tracker](https://github.com/myerscode/utilities-bags/issues).

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

[](#contributing)

See the Myerscode [contributing](https://github.com/myerscode/docs/blob/master/contributing.md) page for information.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance77

Regular maintenance activity

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.2% 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 ~219 days

Recently: every ~278 days

Total

13

Last Release

398d ago

Major Versions

0.0.1 → 1.0.02018-09-30

1.3.1 → 2.0.02022-01-26

1.x-dev → 2.1.02022-06-15

2.2.0 → 2025.0.02025-02-02

PHP version history (7 changes)0.0.1PHP &gt;=7.0

1.2.0PHP ^7.0|^8.0

1.3.1PHP ^7.4||8.0.\*

2.0.0PHP ^8.1

1.x-devPHP ^7.3||8.0.\*

2025.0.0PHP ^8.3

2025.1.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3d9923c8c4269fbe7076613da7e814719743f643cb115b441ccee8aeaa1290e?d=identicon)[oniice](/maintainers/oniice)

---

Top Contributors

[![oniice](https://avatars.githubusercontent.com/u/2676321?v=4)](https://github.com/oniice "oniice (112 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

utilitylibraryfluentcollectionschainingarraysobjectsidempotentdot-arrayarray helperdot accessor

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/myerscode-utilities-bags/health.svg)

```
[![Health](https://phpackages.com/badges/myerscode-utilities-bags/health.svg)](https://phpackages.com/packages/myerscode-utilities-bags)
```

###  Alternatives

[ilya/belt

A handful of tools for PHP developers.

70820.7k1](/packages/ilya-belt)[maciejczyzewski/bottomline

A full-on PHP manipulation utility belt that provides support for working with arrays, objects, and iterables; a lodash or underscore equivalent for PHP.

478627.9k10](/packages/maciejczyzewski-bottomline)[minwork/array

Pack of advanced array functions specifically tailored for: associative (assoc) array, multidimensional array, array of objects and handling nested array elements

66251.1k5](/packages/minwork-array)[me-io/php-lodash

A full-on PHP manipulation utility-belt that provides support for the usual functional.

3998.9k](/packages/me-io-php-lodash)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

185.9k](/packages/rotexsoft-versatile-collections)

PHPackages © 2026

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