2017 © Pedro Peláez
 

library collection

image

inscure/collection

  • Friday, February 20, 2015
  • by Inscure
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Collection

Objective implementation of arrays in PHP, (*2)

Installation

Composer

{
    "require": {
        "inscure/collection": "1.2.1"
    }
}

Usages

<?php

$array = new Collection\Collection(array(1, 2, 3, 4, 5));

echo $array->get(4); // 5 

echo count($array);  // 5

foreach($array as $key => $value) {
    echo $key . '=>' . $value . '<br />';
}

// 0 => 1
// 1 => 2
// 2 => 3
// 3 => 4
// 4 => 5

$array[0] = null;

foreach($array as $key => $value) {
    echo $key . '=>' . $value . '<br />';
}

// 0 => 
// 1 => 2
// 2 => 3
// 3 => 4
// 4 => 5

The Versions

20/02 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Development Requires

by Paweł Zegardło

24/01 2015

1.2.1

1.2.1.0

  Sources   Download

MIT

by Paweł Zegardło

22/01 2015

1.2.0

1.2.0.0

  Sources   Download

MIT

by Paweł Zegardło

22/01 2015

1.1.0

1.1.0.0

  Sources   Download

MIT

by Paweł Zegardło

22/01 2015

1.0.0

1.0.0.0

  Sources   Download

MIT

by Paweł Zegardło