2017 © Pedro Peláez
 

library arrays

Array based classes to handle collections, stacks and queues in PHP.

image

phower/arrays

Array based classes to handle collections, stacks and queues in PHP.

  • Sunday, May 15, 2016
  • by pedrobrazao
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Phower Arrayss

Array based classes to handle collections, stacks and queues in PHP., (*1)

Requirements

Phower Arrays requires:, (*2)

Instalation

Add Phower Arrays to any PHP project using Composer:, (*3)

composer require phower/arrays

Getting Started

Collections

Collections is the base concept of this package. Each collection wraps an array into a class with methods to handle its elements in a normalized way. Both concrete and abstract classes are provided., (*4)

// index.php
require('path/to/vendor/autoload.php');

use Phower\Arrays\Collection;

$collection = new Collection();

Please review Collection Interface for more details on available methods., (*5)

Stacks

Stacks are collections where elements are always added to the top of the internal array. This strategy allows a LIFO (Last In-First Out) handling., (*6)

use Phower\Arrays\Stack;

$stack = new Stack();

Please review Stack Interface for more details on available methods., (*7)

Queues

Queues are collections with the ability to enqueue/dequeue elements. While enqueue is similiar to add method, dequeue always remove the returned element from the queue., (*8)

use Phower\Arrays\Queue;

$queue = new Queue();

Please review Queue Interface for more details on available methods., (*9)

Running Tests

Tests are available in a separated namespace and can run with PHPUnit in the command line:, (*10)

vendor/bin/phpunit

Coding Standards

Phower code is written under PSR-2 coding style standard. To enforce that CodeSniffer tools are also provided and can run as:, (*11)

vendor/bin/phpcs

Reporting Issues

In case you find issues with this code please open a ticket in Github Issues at https://github.com/phower/arrays/issues., (*12)

Contributors

Open Source is made of contribuition. If you want to contribute to Phower please follow these steps:, (*13)

  1. Fork latest version into your own repository.
  2. Write your changes or additions and commit them.
  3. Follow PSR-2 coding style standard.
  4. Make sure you have unit tests with full coverage to your changes.
  5. Go to Github Pull Requests at https://github.com/phower/arrays/pulls and create a new request.

Thank you!, (*14)

Changes and Versioning

All relevant changes on this code are logged in a separated log file., (*15)

Version numbers follow recommendations from Semantic Versioning., (*16)

License

Phower code is maintained under The MIT License., (*17)

The Versions

15/05 2016

dev-master

9999999-dev https://github.com/phower/arrays

Array based classes to handle collections, stacks and queues in PHP.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Avatar Pedro Ferreira

stack php collection array queue

15/05 2016

1.0.0

1.0.0.0 https://github.com/phower/arrays

Array based classes to handle collections, stacks and queues in PHP.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Avatar Pedro Ferreira

stack php collection array queue