Skip to content

john-wilkinson/collections

Repository files navigation

collections

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages