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

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

weblement/collections
=====================

A small PHP collections library that contain powerful data structures which makes manipulation of arrays easier.

129PHP

Since Jun 11Pushed 10y agoCompare

[ Source](https://github.com/weblement/collections)[ Packagist](https://packagist.org/packages/weblement/collections)[ RSS](/packages/weblement-collections/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Weblement Collection Library for PHP
====================================

[](#weblement-collection-library-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/cd8e0a02bd5056b27423e4cbc0861ab5e097d0d70f856bbb1dfdceb710e0ee94/68747470733a2f2f706f7365722e707567782e6f72672f7765626c656d656e742f636f6c6c656374696f6e732f762f737461626c65)](https://packagist.org/packages/weblement/collections)[![Total Downloads](https://camo.githubusercontent.com/42994292b202186e6c790b5ece7aadc5772f1543d96315bcdf766b413d0f8bfd/68747470733a2f2f706f7365722e707567782e6f72672f7765626c656d656e742f636f6c6c656374696f6e732f646f776e6c6f616473)](https://packagist.org/packages/weblement/collections)[![Latest Unstable Version](https://camo.githubusercontent.com/b74fea768b1e77ddd7bf3c4b59a256c587f6aa3f3f761e4b8a07aa97388dabb8/68747470733a2f2f706f7365722e707567782e6f72672f7765626c656d656e742f636f6c6c656374696f6e732f762f756e737461626c65)](https://packagist.org/packages/weblement/collections)[![License](https://camo.githubusercontent.com/0877bb27f8743536f1265c5e0d886c6976af91c4027bb9b8ee0dda9e92c5aee3/68747470733a2f2f706f7365722e707567782e6f72672f7765626c656d656e742f636f6c6c656374696f6e732f6c6963656e7365)](https://packagist.org/packages/weblement/collections)

Weblement [Collection](https://github.com/weblement/collections/blob/master/docs/Collection.md) is a library intended to make the manipulation of different data structures easier. This library adds a layer of abstraction to PHP's array which lets you to work with a specific type of data structure having functions intended for its purpose.

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

[](#installation)

The preferred way to install the library is through [composer](https://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist weblement/collections

```

or add

```
{
    "require": {
        "weblement/collections": "*"
    }
}
```

to your `composer.json` file.

About
-----

[](#about)

The package requires PHP 5.4+ and follows the FIG standards PSR-1, PSR-2 and PSR-4 to ensure a high level of interoperability between shared PHP.

Current collections implemented are:

- ArrayList
- Map
- [Queue](https://github.com/weblement/collections/blob/master/docs/Queue.md)
- [Set](https://github.com/weblement/collections/blob/master/docs/Set.md)
- [Stack](https://github.com/weblement/collections/blob/master/docs/Stack.md)

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

[](#contributing)

This library is open source package by [Weblement](https://github.com/weblement), and maintained by [Locustv2](https://github.com/Locustv2).

Feel free to report issues and make pull requests. Any help would be appreciated.

License
-------

[](#license)

This software is released under the [BSD 3-Clause](https://github.com/weblement/collections/blob/master/LICENSE) License.

Copyright © weblement 2016

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/43f3d13b7b517fc44662d62165016bfeacf0a5858a1cdc7f5c3a8423042bc40b?d=identicon)[Locustv2](/maintainers/Locustv2)

---

Top Contributors

[![Locustv2](https://avatars.githubusercontent.com/u/4509909?v=4)](https://github.com/Locustv2 "Locustv2 (64 commits)")

### Embed Badge

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

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

###  Alternatives

[opensoft/rollout-bundle

A Symfony2/3/4 Bundle for opensoft/rollout

42122.3k](/packages/opensoft-rollout-bundle)[garoevans/php-enum

Convenient way to always have an Enum object available and utilise Spl Types if available.

19163.2k5](/packages/garoevans-php-enum)[suramon/itertools

Iterators implemented in PHP, copy-pasted from Python

1819.1k](/packages/suramon-itertools)[jayesbe/php-process-executive

Control execution of script in child processes

189.8k](/packages/jayesbe-php-process-executive)

PHPackages © 2026

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