2017 © Pedro Peláez
 

library collecterator

A collection class powered by generators

image

buttress/collecterator

A collection class powered by generators

  • Sunday, October 15, 2017
  • by KorvinSzanto
  • Repository
  • 1 Watchers
  • 30 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Collecterator: Generator based collections

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

This library is a fully featured \Generator based Collection implementation. The goal is to provide a memory efficient fast collection implementation that makes it possible to use familiar collection methods to work with infinite or very large streams., (*2)

Our tests were largely copied from tightenco/collect with many modifications added to support the deferred processing you get with Generators., (*3)

For basic usage, see the AllMethods.php example, (*4)

Install

Via Composer, (*5)

``` bash $ composer require buttress/collecterator, (*6)


## Usage ``` php $collection = GeneratorCollection::make([1,2,3]); $collection->filter(function(int $value) { return $value % 2; }); $array = $collection->all();

Change log

Please see CHANGELOG for more information on what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email korvinszanto@gmail.com instead of using the issue tracker., (*10)

Credits

License

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

The Versions

15/10 2017

dev-master

9999999-dev https://github.com/buttress/collecterator

A collection class powered by generators

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

buttress collecterator

15/10 2017

1.0.1

1.0.1.0 https://github.com/buttress/collecterator

A collection class powered by generators

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

buttress collecterator

05/03 2017

1.0.0

1.0.0.0 https://github.com/buttress/collecterator

A collection class powered by generators

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

buttress collecterator