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.
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.
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.
Via Composer
$ composer require john-wilkinson/:collections
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();
Please see CHANGELOG for more information what has changed recently.
$ composer test
OR
$ phpunit
Please see CONTRIBUTING for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.