collections
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
Note: Replace :John Mark Wilkinson :john-wilkinson :collections :A consistent collections framework with their correct values in README.md, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md and composer.json files, then delete this line., (*2)
This is a consistent collections framework, strongly based off the Java Collections Framwork, with a lesser influence from ruby and python. It adheres to the PSR standards., (*3)
One of the major goals of this project is to provide an interface that allows the internals to be re-written in c, and given php bindings. This would tremendously increase the efficiency of the framework., (*4)
Install
Via Composer, (*5)
``` bash
$ composer require john-wilkinson/:collections, (*6)
## Usage
``` php
use Jmw\Collection\Queue\ArrayDeque;
$deque = new ArrayDeque(['a','b','c']);
//a
echo $deque->poll();
//b
echo $deque->poll();
//c
echo $deque->pollLast();
//null
echo $deque->pollLast();
Change log
Please see CHANGELOG for more information what has changed recently., (*7)
Testing
``` bash
$ composer test, (*8)
OR
``` bash
$ phpunit
Contributing
Please see CONTRIBUTING for details., (*9)
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)