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

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

cloudcreativity/utils-collection
================================

Our standard class for handling lists in PHP.

v1.1.0(7y ago)1278Apache-2.0PHPPHP &gt;=5.6.4

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cloudcreativity/utils-collection)[ Packagist](https://packagist.org/packages/cloudcreativity/utils-collection)[ Docs](https://github.com/cloudcreativity/utils-collection)[ RSS](/packages/cloudcreativity-utils-collection/feed)WikiDiscussions develop Synced 4w ago

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

[![Build Status](https://camo.githubusercontent.com/4b40b31c388eb99269520a91347c7b51b6898231ae4225f7b0cbd3e8634a1767/68747470733a2f2f7472617669732d63692e6f72672f636c6f7564637265617469766974792f7574696c732d636f6c6c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cloudcreativity/utils-collection)

cloudcreativity/utils-collection
================================

[](#cloudcreativityutils-collection)

Our standard collection class for handling lists in PHP. By lists, we mean numerically indexed arrays.

This package also contains our `StandardIteratorInterface`. We use this if we are writing specific collection classes that hold only particular types of objects.

License
-------

[](#license)

Apache License (Version 2.0). Please see [License File](LICENSE) for more information.

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

[](#contributing)

File an issue, or ideally submit a pull request. Bug fixes should be submitted against the `master` branch, new features/changes should be submitted against the `develop` branch. Pull requests should have updated or new unit tests in them.

Make sure your IDE has an [EditorConfig](http://editorconfig.org) plugin installed.

Testing
-------

[](#testing)

Clone the repository, then:

```
composer up
vendor/bin/phpunit
```

Collection
----------

[](#collection)

The `CloudCreativity\Utils\Collection\Collection` is a standard class for handling numerically indexed lists. It comes with the following methods.

### Modifiers

[](#modifiers)

The following methods modify the list contained within the collection:

- `add`
- `addStrict`
- `addObjects`
- `clear`
- `fill`
- `fillObject`
- `insertAt`
- `pop`
- `push`
- `pushObjects`
- `remove`
- `removeAt`
- `removeStrict`
- `replace`
- `shift`
- `unshift`
- `unshiftObjects`

### Accessors

[](#accessors)

The following methods give access to items within the collection:

- `first`
- `itemAt`
- `last`

### Querying

[](#querying)

The following methods can be used to assess or query the contents of the collection;

- `any`
- `contains`
- `containsStrict`
- `equals`
- `equalsStrict`
- `every`
- `indexOf`
- `indexOfStrict`
- `isEmpty`
- `isNotEmpty`
- `search`
- `searchStrict`

### Helpers

[](#helpers)

The following methods assist with handling the list, and return new instances of the collection. (I.e. the original collection is not modified.)

- `all`
- `cast` (static)
- `chunk`
- `compact`
- `copy`
- `count`
- `create` (static)
- `diff`
- `each`
- `filter`
- `implode`
- `intersect`
- `invoke`
- `itemsAt`
- `map`
- `pad`
- `reduce`
- `reject`
- `replicate`
- `reverse`
- `slice`
- `sort`
- `sync`
- `take`
- `tap`
- `unique`
- `uniqueStrict`
- `without`
- `withoutStrict`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~205 days

Recently: every ~217 days

Total

6

Last Release

2691d ago

Major Versions

v0.3.0 → v1.0.02017-09-30

PHP version history (2 changes)v0.1.0PHP &gt;=5.5.0

v0.2.0PHP &gt;=5.6.4

### Community

Maintainers

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

---

Top Contributors

[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (58 commits)")

---

Tags

cloudcreativity

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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