dev-master
9999999-dev https://github.com/Ducatel/PHPCollectionImplementation of data structure in PHP
MIT
The Requires
- php ~7.0
The Development Requires
collection ducatel
Wallogit.com
2017 © Pedro Peláez
Implementation of data structure in PHP
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads]
, (*1)
This library adds some "standard" collections for PHP. Collections are like array which follow constrains :, (*2)
You can found also some already specialized collection for non object variable (like string or number), (*3)
Via Composer, (*4)
``` bash $ composer require ducatel/php-collection, (*5)
## Usage ``` php $stringArray = new Ducatel\PHPCollection\Specialized\StringArray(); $stringArray[] = "a"; // ['a'] $stringArray[] = "b"; // ['a', 'b'] $stringArray[] = new PDO(); // FAIL $typedArray = new Ducatel\PHPCollection\TypedArray(MyClass::class); $typedArray[] = new MyClass(); // OK $typedArray[] = "a"; // FAIL
Please see CHANGELOG for more information what has changed recently., (*6)
bash
$ composer test, (*7)
Please see CONTRIBUTING and CONDUCT for details., (*8)
If you discover any security related issues, please email david@ducatel.eu instead of using the issue tracker., (*9)
The MIT License (MIT). Please see License File for more information., (*10)
Implementation of data structure in PHP
MIT
collection ducatel