PHPackages                             mibexx/collection - 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. mibexx/collection

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

mibexx/collection
=================

Can convert array to collection objects and back to array

v0.1.2(9y ago)036MITPHPPHP &gt;=5.6

Since Apr 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mibexx/collection)[ Packagist](https://packagist.org/packages/mibexx/collection)[ RSS](/packages/mibexx-collection/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Collection-Object
=================

[](#collection-object)

Collections to use as objects for lists.
Can convert arrays to collections and collections to arrays.
Collections are iterable.

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

[](#installation)

composer require mibexx/collection

Configuration
-------------

[](#configuration)

There is no configuration needed

Usage
-----

[](#usage)

Convert array to collection:

```
use mibexx\collection\Collection\Collection;
use mibexx\collection\Parser\CollectionParser;

$list = [
    'foo' => 'bar',
    'fuzz' => [
        'foo' => 'buzz'
    ]
];

$parser = new CollectionParser();
$collection = new Collection();
$parser->convertToCollection($list, $collection);

echo $collection->get('foo')->get(); // prints bar
echo $collection->get('fuzz')->get('foo')->get(); // prints buzz
```

Create collection and convert to array:

```
use mibexx\collection\Collection\Collection;
use mibexx\collection\Parser\ArrayParser;

$parser = new ArrayParser();
$collection = new Collection();

$fuzz = new Collection();
$fuzz->set('foo', new SimpleElement('buzz'));

$collection->set('foo', new SimpleElement('bar'));
$collection->set('fuzz', new CollectionElement($fuzz));

$newList = $parser->convertToArray($collection);

print_r($newList);
/* equal to:
array(
    'foo' => 'bar',
    'fuzz' => [
        'foo' => 'buzz'
    ]
)
*/
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

3

Last Release

3348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ba15174c6a847524e2118ff1b34670252159fa2bee234292381e090e3f1b3a1?d=identicon)[mibexx](/maintainers/mibexx)

---

Top Contributors

[![nxsbertram](https://avatars.githubusercontent.com/u/22816620?v=4)](https://github.com/nxsbertram "nxsbertram (5 commits)")[![mibexx](https://avatars.githubusercontent.com/u/12134020?v=4)](https://github.com/mibexx "mibexx (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mibexx-collection/health.svg)

```
[![Health](https://phpackages.com/badges/mibexx-collection/health.svg)](https://phpackages.com/packages/mibexx-collection)
```

###  Alternatives

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k435.9k19](/packages/phalcon-zephir)[jbzoo/composer-graph

Render composer.json + composer.lock dependencies graph

67743.0k2](/packages/jbzoo-composer-graph)[chaseconey/nova-external-image

A Laravel Nova field.

28474.4k](/packages/chaseconey-nova-external-image)[ycs77/laravel-wizard

A web setup wizard for Laravel application.

12123.1k](/packages/ycs77-laravel-wizard)[hammerstone/sidecar-inertia

A Laravel package to render Inertia apps on AWS Lambda.

6210.9k](/packages/hammerstone-sidecar-inertia)

PHPackages © 2026

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