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

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

ivandelabeldad/collections
==========================

Basic Collections library for PHP

1.2.0(8y ago)1711MITPHP

Since Oct 24Pushed 8y agoCompare

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

READMEChangelogDependenciesVersions (12)Used By (1)

PHP Dates
=========

[](#php-dates)

[![Packagist](https://camo.githubusercontent.com/39186606f971fde96c75bc476768c348c4baad431ca341223a1eced00a5949d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6976616e64656c6162656c6461642f636f6c6c656374696f6e732e737667)](https://packagist.org/packages/ivandelabeldad/collections)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/ivandelabeldad/collections/blob/master/LICENSE)

Basic Collections library for PHP

Install
-------

[](#install)

```
composer require ivandelabeldad/collections

```

Usage
-----

[](#usage)

### Basic ArrayList operations

[](#basic-arraylist-operations)

```
// CREATE THE LIST
$list = new ArrayList();

// ADD ELEMENTS TO THE LIST
$list->add("element");
$list->addAll(["element1", "element2"]);

// REMOVE ALL ELEMENTS
$list->clear();

// REMOVE AN ELEMENT BASED ON ITS INDEX
$list->remove(0);

// ADD ELEMENT AT SPECIFIED POSITION
$list->addAt(10, "element in position 10");

// GET CURRENT SIZE OF THE LIST
$list->size();
```

### Functional programming

[](#functional-programming)

```
$list = new ArrayList([
    'first',
    'second',
    'third',
    'fourth',
]);

// EDIT EACH ELEMENT
$list->forEachDo(function (&$element) {
    $element = ucfirst($element);
});

// MAPPING
$mapped = $list->map(function ($element) {
    return "Mapped " . $element;
});

// FILTERING
$filtered = $list->filter(function ($element) {
   return strlen($element) > 5;
});
```

License
-------

[](#license)

The API Rackian is open-sourced software licensed under the [MIT LICENSE](https://github.com/ivandelabeldad/php-collections/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

11

Last Release

3122d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[enricodias/smsdev

Send and receive SMS using SmsDev.com.br

2211.3k1](/packages/enricodias-smsdev)

PHPackages © 2026

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