2017-25 © Pedro Peláez
 

library circular-array

Fixed circular array data structure

image

php-snippets/circular-array

Fixed circular array data structure

  • Wednesday, November 1, 2017
  • by Webysther
  • Repository
  • 1 Watchers
  • 3 Stars
  • 223 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 186 % Grown

The README.md

Circular Array

Build Status Minimum PHP Version Release Coverage Status Quality Score Software License, (*1)

Image: Cburnett

From Wikipedia:, (*2)

A circular buffer, circular queue, cyclic buffer or ring buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end. This structure lends itself easily to buffering data streams., (*3)

Install

Via Composer, (*4)

``` bash $ composer require php-snippets/circular-array, (*5)


## Usage You can create an array where an interaction occurs indefinitely: ```php use PHPSnippets\DataStructures\CircularArray; $circular = Circular::fromArray(array(1, 2, 3, 4)); // this foreach never ends, after 4 back to 1. foreach($circular as $value){ echo $value; }

Requirements

The following versions of PHP are supported by this version., (*6)

  • PHP >= 5.3

Testing

$ vendor/bin/phpunit

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Credits

License

MIT. Please see License File for more information., (*8)

The Versions

01/11 2017

dev-master

9999999-dev

Fixed circular array data structure

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Avatar Webysther

array queue buffer data-structures circular fixed cyclic

26/10 2017

v1.0.0

1.0.0.0

Fixed circular array data structure

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Avatar Webysther

array circular