Recommend this page to a friend! |
Download .zip |
Info | View files (121) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-03-29 (1 year ago) | 60% | Total: 338 | All time: 6,704 This week: 934 |
Version | License | PHP version | Categories | |||
collections-php 1.0 | MIT/X Consortium ... | 5.4.0 | PHP 5, Libraries, Data types, Design ... |
Description | Author | ||||||||
This package can be used to manipulate collections of values. |
|
# Collections [![Build Status](https://travis-ci.org/italolelis/collections.svg?style=flat-square)](https://travis-ci.org/italolelis/collections) [![Scrutinizer Code Quality](http://img.shields.io/scrutinizer/g/italolelis/collections.svg?style=flat-square)](https://scrutinizer-ci.com/g/italolelis/collections/) [![Code Coverage](http://img.shields.io/scrutinizer/coverage/g/italolelis/collections.svg?style=flat-square)](https://scrutinizer-ci.com/g/italolelis/collections/) [![Latest Stable Version](http://img.shields.io/packagist/v/easyframework/collections.svg?style=flat-square)](https://packagist.org/packages/easyframework/collections) [![Downloads](https://img.shields.io/packagist/dt/easyframework/collections.svg?style=flat-square)](https://packagist.org/packages/easyframework/collections) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/1f67b9bd-f120-43d5-9f02-f73aa6132d86/small.png)](https://insight.sensiolabs.com/projects/1f67b9bd-f120-43d5-9f02-f73aa6132d86) Collections Abstraction library for PHP The Collection library is one of the most useful things that many modern languages has, but for some reason PHP doesn't has a built in collection layer. For that reason we created Collections, an incredible library that gathers the best of .NET's and Java's collections patterns and unify it with PHP array power. Take a look and see what we're talking about!! ## Install ``` json { "require": { "easyframework/collections": "~4.0" } } ``` ## Usage ### The Collection Class The Collection represents the List in .NET language or simply non-associative arrays in php: ```php $collection = new Collections\ArrayList(); $collection->add('John'); $collection->add('Maria'); $collection->add('Anderson'); $collection->each(function($item){ echo $item; }); ``` ## Contributing Please see [CONTRIBUTING](https://github.com/LellysInformatica/collections/blob/master/CONTRIBUTING.md) for details. ## Credits - [italolelis](https://github.com/italolelis) - [philipe](https://github.com/philipe) - [AyrtonRicardo](https://github.com/AyrtonRicardo) - [All Contributors](https://github.com/LellysInformatica/collections/contributors) ## License The MIT License (MIT). Please see [License File](https://github.com/LellysInformatica/collections/blob/master/LICENSE) for more information. ### Documentation More information can be found in the online documentation at http://collections.readthedocs.org/. |
Files |
File | Role | Description | ||
---|---|---|---|---|
Comparer (2 files) | ||||
docs (7 files, 1 directory) | ||||
Expr (6 files) | ||||
Generic (1 file) | ||||
src (25 files, 4 directories) | ||||
tests (9 files) | ||||
.scrutinizer.yml | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
Collection.php | Class | Class source | ||
CollectionBase.php | Class | Class source | ||
CollectionInterface.php | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
CONTRIBUTING.md | Data | Auxiliary data | ||
Criteria.php | Class | Class source | ||
Dictionary.php | Class | Class source | ||
DictionaryInterface.php | Class | Class source | ||
Enumerable.php | Class | Class source | ||
EnumerableInterface.php | Class | Class source | ||
ExpressionBuilder.php | Class | Class source | ||
LICENSE | Data | Auxiliary data | ||
ListInterface.php | Class | Class source | ||
phpci.yml | Data | Auxiliary data | ||
phpunit.xml.dist | Data | Auxiliary data | ||
Queue.php | Class | Class source | ||
README.md | Data | Auxiliary data | ||
SelectableInterface.php | Class | Class source | ||
Stack.php | Class | Class source |
Files | / | Comparer |
File | Role | Description |
---|---|---|
NumericKeyComparer.php | Class | Class source |
StringComparer.php | Class | Class source |
Files | / | docs |
File | Role | Description | ||
---|---|---|---|---|
_templates (1 file) | ||||
conf.py | Data | Auxiliary data | ||
index.rst | Data | Auxiliary data | ||
Makefile | Data | Auxiliary data | ||
overview.rst | Data | Auxiliary data | ||
quickstart.rst | Data | Auxiliary data | ||
reactive-extension.rst | Data | Auxiliary data | ||
requirements.txt | Doc. | Documentation |
Files | / | Expr |
File | Role | Description |
---|---|---|
ClosureExpressionVisitor.php | Class | Class source |
Comparison.php | Class | Class source |
CompositeExpression.php | Class | Class source |
Expression.php | Class | Class source |
ExpressionVisitor.php | Class | Class source |
Value.php | Class | Class source |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Comparer (2 files) | ||||
Exception (10 files) | ||||
Generic (1 file) | ||||
Iterator (34 files) | ||||
AbstractCollection.php | Class | Class source | ||
AbstractCollectionArray.php | Class | Class source | ||
ArrayList.php | Class | Class source | ||
AvlTree.php | Class | Class source | ||
BinarySearchTreeInterface.php | Class | Class source | ||
BinaryTree.php | Class | Class source | ||
CollectionConvertableInterface.php | Class | Class source | ||
CollectionInterface.php | Class | Class source | ||
ConstIndexAccessInterface.php | Class | Class source | ||
Dictionary.php | Class | Class source | ||
ExtractTrait.php | Class | Class source | ||
GuardTrait.php | Class | Class source | ||
IndexAccessInterface.php | Class | Class source | ||
LinkedQueue.php | Class | Class source | ||
LinkedStack.php | Class | Class source | ||
MapConvertableInterface.php | Class | Class source | ||
MapInterface.php | Class | Class source | ||
Pair.php | Class | Class source | ||
Queue.php | Class | Class source | ||
QueueInterface.php | Class | Class source | ||
SortTrait.php | Class | Class source | ||
Stack.php | Class | Class source | ||
StackInterface.php | Class | Class source | ||
VectorConvertableInterface.php | Class | Class source | ||
VectorInterface.php | Class | Class source |
Files | / | src | / | Comparer |
File | Role | Description |
---|---|---|
NumericKeyComparer.php | Class | Class source |
StringComparer.php | Class | Class source |
Files | / | src | / | Exception |
File | Role | Description |
---|---|---|
DomainException.php | Class | Class source |
EmptyException.php | Class | Class source |
Exception.php | Class | Class source |
FullException.php | Class | Class source |
FunctionException.php | Class | Class source |
IndexException.php | Class | Class source |
KeyException.php | Class | Class source |
LookupException.php | Class | Class source |
StateException.php | Class | Class source |
TypeException.php | Class | Class source |
Files | / | src | / | Iterator |
Files | / | tests |
File | Role | Description |
---|---|---|
ArrayListTest.php | Test | Unit test script |
bootstrap.php | Test | Unit test script |
CollectionsTestCase.php | Test | Unit test script |
DictionaryTest.php | Test | Unit test script |
LinkedQueueTest.php | Test | Unit test script |
LinkedStackTest.php | Test | Unit test script |
QueueTest.php | Test | Unit test script |
RxTest.php | Test | Unit test script |
StackTest.php | Test | Unit test script |
collections-php-2015-03-29.zip 86KB | |
collections-php-2015-03-29.tar.gz 43KB | |
Install with Composer |
Needed packages | ||
Class | Download | Why it is needed | Dependency |
---|---|---|---|
Generics PHP | .zip .tar.gz | The generics interfaces are needed to all classes work correctly | Required |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
81% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
API The API document |
Git Repository The git repository |