PHPackages                             bcc/enumerable-utility - 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. bcc/enumerable-utility

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

bcc/enumerable-utility
======================

Provides easy manipulation of array, string, and enumerables

1.1(12y ago)211803[1 PRs](https://github.com/michelsalib/BCCEnumerableUtility/pulls)MITPHPPHP &gt;=5.4

Since Feb 6Pushed 10y ago2 watchersCompare

[ Source](https://github.com/michelsalib/BCCEnumerableUtility)[ Packagist](https://packagist.org/packages/bcc/enumerable-utility)[ Docs](http://github.com/michelsalib/BCCEnumerableUtility)[ RSS](/packages/bcc-enumerable-utility/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

\#Readme

[![Build Status](https://camo.githubusercontent.com/815c384ff2a19205da8727ae59f4152058866788572da4c90be6ee8e01a51dc9/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d696368656c73616c69622f424343456e756d657261626c655574696c6974792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/michelsalib/BCCEnumerableUtility)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/b544898186ecbd4f357d864e6eb9b7362285cce54d425d42534982b57d6633dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696368656c73616c69622f424343456e756d657261626c655574696c6974792f6261646765732f7175616c6974792d73636f72652e706e673f733d34323365356564663766613464623061323939323835343938313032633762636164616238376533)](https://scrutinizer-ci.com/g/michelsalib/BCCEnumerableUtility/)

\##Enumerable Utility

The enumerable utility library provides an easy way to manipulate collections. This library contains:

- A `String` class that uses `Enumerable` and adds more wonderful methods
- A `Collection` class that helps you rapidly leverage the `Enumerable`
- A `Dictionary` class that is an indexed `Collection`
- A `StringUtility` class if you don't like the idea of a `String` class

It takes inspiration from the Linq Enumerable class extension of the .NET framework.

\##Installation

You will need to run under PHP 5.4.

You can simply download the source or use composer to get the package.

A quick overview
----------------

[](#a-quick-overview)

Most of the time you will just use the `Collection` class to address most of your use cases:

```
