jwilkinson / collections
A package providing a wide variety of standard interfaces and datastructures
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-09-20 18:04:12 UTC
README
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.
Install
Via Composer
$ composer require john-wilkinson/:collections
Usage
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.
Testing
$ composer test
OR
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.