2017 © Pedro Peláez
 

library php-collections

Data structures for PHP based on Java Collection Framework

image

tebru/php-collections

Data structures for PHP based on Java Collection Framework

  • Monday, January 16, 2017
  • by natebrunette
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

PHP Collections

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight, (*1)

This library ports the Java Collections Framework to PHP., (*2)

Installation

composer require tebru/php-collections

Collections

Collections provide data storage where order and random access do not matter. All collections implement CollectionInterface., (*3)

AbstractCollection

This is an abstract class that implements the methods it can. It defers the decision of what underlying data structure to use to the concrete implementation., (*4)

Bag

This is an implementation of CollectionInterface that extends from AbstractCollection and uses an array as data storage., (*5)

AbstractList

This inherits from AbstractCollection and implements the ListInterface. Lists add random access to collections. The allow getting/setting/removing at a specific index. By default, they add elements to the end of the list., (*6)

ArrayList

This is an implementation of CollectionInterface and ListInterface. It extends from AbstractList and uses an array as data storage., (*7)

AbstractSet

This extends from AbstractCollection and implements SetInterface. Sets differ from generic collections by only allowing one of each element., (*8)

HashSet

This is an implementation of CollectionInterface and SetInterface and extends from AbstractSet. This uses a HashMap as data storage., (*9)

Maps

Maps provide data storage where order does not matter, but the ability to get a value by key is important. All maps implement MapInterface., (*10)

AbstractMap

This implements MapInterface and implements any methods that do not need to know about the specific data storage., (*11)

HashMap

This is an implementation of MapInterface and extends from AbstractMap. It uses an array as data storage., (*12)

The Versions

16/01 2017

dev-develop

dev-develop

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.1

 

The Development Requires

by Nate Brunette

15/01 2017

dev-master

9999999-dev

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.1

 

The Development Requires

by Nate Brunette

15/01 2017

v0.3.2

0.3.2.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.1

 

The Development Requires

by Nate Brunette

15/01 2017

v0.3.1

0.3.1.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.1

 

The Development Requires

by Nate Brunette

15/01 2017

v0.3.0

0.3.0.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.1

 

The Development Requires

by Nate Brunette

16/10 2016

v0.2.2

0.2.2.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

by Nate Brunette

15/10 2016

v0.2.1

0.2.1.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

by Nate Brunette

14/10 2016

v0.2.0

0.2.0.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

by Nate Brunette

12/10 2016

v0.1.0

0.1.0.0

Data structures for PHP based on Java Collection Framework

  Sources   Download

MIT

The Requires

  • php >= 7.0

 

The Development Requires

by Nate Brunette