Download the PHP package bcc/enumerable-utility without Composer

On this page you can find all versions of the php package bcc/enumerable-utility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package enumerable-utility

Readme

Build Status Scrutinizer Quality Score

Enumerable Utility

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

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

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

Enumerable functions

Here is the list of the current implemented functions:

Note that the functions returns an instance of the calling class when applicable.

Use of functions

Sometimes, you just want to specify a single property and then a full closure:

Hopefully there is a function resolver mechanism which allows you to shorten your syntax.

You can simply give a property path to the field you want to select:

Note that string property supports also:

Property path comes from the symfony/property-access library.

You can also give an array that represents an expression:

Expression comes from the symfony/expression-language library.

The Collection class

Behind being an enumerable, Collection has some useful functions:

The Dictionary class

Behind being an enumerable, Dictionary has some useful functions:

The String class

The String class is also an Enumerable (understand enumerable of char), but it also adds some usefull methods.

These are inspired from the String class of the .NET framework:

You can now do:

The StringUtility class

If you don't like to use a String class, you can ave access to all the power using the StringUtility class. All it does is internally mapping static calls to the String class:


All versions of enumerable-utility with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/property-access Version ~2.4
symfony/expression-language Version ~2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bcc/enumerable-utility contains the following files

Loading the files please wait ....