2017 © Pedro Peláez
 

library arr

Ustream Array helpers

image

ustream/arr

Ustream Array helpers

  • Tuesday, January 21, 2014
  • by blerou
  • Repository
  • 28 Watchers
  • 3 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Ustream Arr Build Status

This is a collection of Array related utilities., (*1)

Extractors

Mining data from a deeply nested array is tedious. The Extractor library give a programable and composable solution to this kind of problems., (*2)

Reaching data on a simple "path" in the nested structure:, (*3)

$sample = array(
  "foo" => array(
    "bar" => array(
      "baz" => "something"
    )
  )
);

$extractor = new PathExtractor(array("foo", "bar", "baz"));
$result = $extractor->extract($sample);
//        "something" # inside an Option instance

$extractor = new PathExtractor(array("foo", "bar"));
$result = $extractor->extract($sample);
//        array("baz" => "something") # inside an Option instance

$extractor = new PathExtractor(array("foo"));
$result = $extractor->extract($sample);
//        array("bar" => array("baz" => "something")) # inside an Option instance

The Versions

21/01 2014

dev-master

9999999-dev http://github.com/ustream/arr

Ustream Array helpers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Wilcsinszky
by Szabolcs Sulik

array extract

21/10 2013

0.1.2

0.1.2.0 http://github.com/ustream/arr

Ustream Array helpers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Wilcsinszky
by Szabolcs Sulik

array extract

16/08 2013

0.1.1

0.1.1.0 http://github.com/ustream/arr

Ustream Array helpers

  Sources   Download

MIT

The Requires

 

by Peter Wilcsinszky
by Szabolcs Sulik

array extract

15/08 2013

0.1.0

0.1.0.0 http://github.com/ustream/arr

Ustream Array helpers

  Sources   Download

MIT

The Requires

 

by Peter Wilcsinszky
by Szabolcs Sulik

array extract