PHPackages                             ialopezg/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. ialopezg/collections

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

ialopezg/collections
====================

PHP Base Library for Collection Management

v0.0.2(5y ago)0171MITPHPPHP ^5.6 || ^7.0

Since Sep 15Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Collections Manager
===================

[](#collections-manager)

PHP based Collections Manager

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

[](#installation)

```
composer require ialopezg/collections
```

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

[](#requirements)

- PHP 5.6+

Features
--------

[](#features)

- Set item
- Update item
- Remove item
- Lookup for an item
    - By key name when single lookup
    - By dot notation when nested lookup
- Data cache for quick access
- Access to firs level object by invoking its name in the class, by example: ` echo $collection->itemName;`. Protected properties cannot be invoked.
- Merging of classes are derivative from `CollectionInterface`.
- Access to its items like associative arrays.

Usage
-----

[](#usage)

```
use ialopezg\Libraries\Collection;

// class derived from Collection class
class ItemCollection extends Collection { }

$collection = new ItemCollection([]);
// get the value, if not found return default value
echo $collection->get('item_name', 'initial value');
// changing item_name's value
$collection->set('item_name', 'item value');
// print current value
if ($collection->has('item_name')) {
    echo $collection->get('item_name');
}
// remove item_name property
$collection->remove('item_name');

echo $collection->count();
```

Please, check [examples](examples) directory for more details of usage or run:

```
### from linux bash
./server.sh
```

or

```
### from windows bash
server.bat
```

License
-------

[](#license)

This project is under the MIT license. For more information see [LICENSE](LICENSE).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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 ~1 days

Total

2

Last Release

2067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f97c20d9309952abd3cadf77f087307284d35ae6c484de3441eec36dbd5c93c?d=identicon)[ialopezg](/maintainers/ialopezg)

### Embed Badge

![Health badge](/badges/ialopezg-collections/health.svg)

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

###  Alternatives

[seld/signal-handler

Simple unix signal handler that silently fails where signals are not supported for easy cross-platform development

18271.3M19](/packages/seld-signal-handler)[nlp-tools/nlp-tools

NlpTools is a set of php 5.3+ classes for beginner to semi advanced natural language processing work.

774645.2k5](/packages/nlp-tools-nlp-tools)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)[jolicode/jolitypo

Microtypography fixer for the web.

3471.1M5](/packages/jolicode-jolitypo)[bluem/tree

Library for handling tree structures based on parent IDs

252916.1k7](/packages/bluem-tree)[ladumor/laravel-pwa

this package used for the make pwa website.

270277.7k](/packages/ladumor-laravel-pwa)

PHPackages © 2026

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