2017 © Pedro PelĂĄez
 

library sorted-collections

Sorted Collections for PHP >= 5.5

image

chdemko/sorted-collections

Sorted Collections for PHP >= 5.5

  • Monday, May 28, 2018
  • by chdemko
  • Repository
  • 3 Watchers
  • 11 Stars
  • 403 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

PHP Sorted Collections

PHP package Coveralls Scrutinizer Code Climate CodeFactor Codacy PHP versions Latest Stable Version Downloads Latest Unstable Version License Last commit Documentation Status Repo Size Code Size, (*1)

Sorted Collection for PHP. Insertion, search, and removal compute in log(n) time where n is the number of items present in the collection. It uses AVL threaded tree [see @Knuth97, 1:320, Sect. 2.3.1] as internal structure., (*2)

@Knuth97: Donald E. Knuth, The Art of Computer Programming, Addison-Wesley, volumes 1 and 2, 2nd edition, 1997., (*3)

This project uses:, (*4)

 Instructions

Using composer: either, (*5)

$ composer create-project chdemko/sorted-collections:1.0.*@dev; cd sorted-collections
Creating a "chdemko/sorted-collections:1.0.*@dev" project at "./sorted-collections"
...

or create a composer.json file containing, (*6)

{
    "require": {
        "chdemko/sorted-collections": "1.0.*@dev"
    }
}

and run, (*7)

$ composer install
Loading composer repositories with package information
...

Create a test.php file containg, (*8)

<?php

require __DIR__ . '/vendor/autoload.php';

use chdemko\SortedCollection\TreeMap;

$tree = TreeMap::create()->put(
    [1=>1, 9=>9, 5=>5, 2=>2, 6=>6, 3=>3, 0=>0, 8=>8, 7=>7, 4=>4]
);
echo $tree . PHP_EOL;

And run, (*9)

$ php test.php
[0,1,2,3,4,5,6,7,8,9]

See the examples and benchmarks folders for more information., (*10)

Documentation

Run, (*11)

$ sudo apt install doxygen python3-pip python3-virtualenv
$ virtualenv venv
$ venv/bin/activate
(venv) $ pip install -r docs/requirements.txt
(venv) $ sphinx-build -b html docs/ html/
(venv) $ deactivate
$

if you want to create local documentation with Sphinx., (*12)

Citation

If you are using this project including publication in research activities, you have to cite it using (BibTeX format). You are also pleased to send me an email to chdemko@gmail.com., (*13)

All releases can be found here, (*14)

The Versions

28/05 2018

dev-master

9999999-dev http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.5

  Sources   Download

BSD-3-Clause CeCILL-B

The Requires

  • php >=5.5.0

 

The Development Requires

collection iterator tree map set ordered sorted treeset treemap avl

22/05 2018

1.0.3

1.0.3.0 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.5

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

collection iterator tree map set ordered sorted treeset treemap avl

19/05 2018

1.0.2

1.0.2.0 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.5

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

collection iterator tree map set ordered sorted treeset treemap avl

18/10 2016

1.0.1

1.0.1.0 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.5

  Sources   Download

CeCILL-B

The Requires

  • php >=5.5.0

 

The Development Requires

collection iterator tree map set ordered sorted treeset treemap avl

18/03 2015

1.0.0

1.0.0.0 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.4

  Sources   Download

CeCILL-B

The Requires

  • php >=5.4.0

 

The Development Requires

collection iterator tree map set ordered sorted

18/06 2014

1.0.0-rc2

1.0.0.0-RC2 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.4

  Sources   Download

CeCILL-B

The Requires

  • php >=5.4.0

 

The Development Requires

collection iterator tree map set ordered sorted

16/05 2014

1.0.0-rc1

1.0.0.0-RC1 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.4

  Sources   Download

CeCILL-B

The Requires

  • php >=5.4.0

 

The Development Requires

collection iterator tree map set ordered sorted

09/04 2014

1.0.0-beta2

1.0.0.0-beta2 http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.4

  Sources   Download

CeCILL-B

The Requires

  • php >=5.4.0

 

The Development Requires

collection iterator tree map set ordered sorted

08/04 2014

1.0.0-beta

1.0.0.0-beta http://github.com/chdemko/php-sorted-collections

Sorted Collections for PHP >= 5.4

  Sources   Download

CeCILL-B

The Requires

  • php >=5.4.0

 

The Development Requires

iterator tree map set ordered sorted