2017 © Pedro Peláez
 

library collection

Collection Abstraction library extended

image

amo/collection

Collection Abstraction library extended

  • Thursday, April 26, 2018
  • by amo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Collection

Collection management, heavily inspired by Doctrine ArrayCollection, (*1)

Install

composer require amo/collection

Usages

// Static instantiation
Collection::make($repository->findBy($criterias))
    // map method, allows to create a new collection 
    // based on each item of the given collection 
    ->map(function(User $user){
        return $user->getEmail();
    })
    // each method, executes a closure fore each item of a collection
    ->each(function(String $email) {
        $message = $this->buildMessage($email);
        $this->mailer->send($message);
    });
    // etc...

The Versions

26/04 2018

dev-feature/PIL-138

dev-feature/PIL-138

Collection Abstraction library extended

  Sources   Download

MIT

The Requires

 

The Development Requires

by Amaury Leroux de Lens

05/02 2018

dev-master

9999999-dev

Collection Abstraction library extended

  Sources   Download

MIT

The Requires

 

The Development Requires

by Amaury Leroux de Lens

01/02 2018

v0.0.2

0.0.2.0

Collection Abstraction library extended

  Sources   Download

MIT

The Requires

 

The Development Requires

by Amaury Leroux de Lens

01/02 2018

v0.0.1

0.0.1.0

Collection Abstraction library extended

  Sources   Download

MIT

The Requires

 

The Development Requires

by Amaury Leroux de Lens