2017 © Pedro Peláez
 

library prettyarray

Manipulate arrays similar to Ruby.

image

blainesch/prettyarray

Manipulate arrays similar to Ruby.

  • Thursday, March 12, 2015
  • by BlaineSch
  • Repository
  • 3 Watchers
  • 9 Stars
  • 18,445 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

PrettyArray

A object oriented approach to handling arrays in PHP. It attempts to combine Ruby (enumerator/array/hash) methods as well as built in PHP functions., (*1)

Build Status, (*2)

Example 1

group_by_(function($key, &$value) {
    return ($value % 3);
});
print_r($arr->to_a());
?>
Array
(
    [0] => Array
        (
            [0] => 3
            [1] => 6
        )

    [1] => Array
        (
            [0] => 1
            [1] => 4
        )

    [2] => Array
        (
            [0] => 2
            [1] => 5
        )
)



## More Examples More examples can be found inside of the "/examples" directory in markdown format which is viewable on Github. ## Installation ### GIT ~~~ bash git clone git://github.com/BlaineSch/prettyArray.git # OR git submodule add git://github.com/BlaineSch/prettyArray.git
### Composer ~~~ json "require": { "blainesch/prettyarray": "1.0.0" }
~~~ bash
php compooser.phar install
## Requirements * [PHP 5.3+](http://php.net/downloads.php) ## Contributing ### Requirements * [PHP 5.3+](http://php.net/downloads.php) * [PHPUnit](http://www.phpunit.de/manual/3.6/en/installation.html/) ### Testing Before making any pull requests please verify that your methods pass the current unit tests.
cd PrettyArray && phpunit

PHPUnit 3.6.12 by Sebastian Bergmann., (*3)

Configuration read from /Users/blaineschmeisser/Sites/devup/PrettyArray/phpunit.xml, (*4)

............................................................... 63 / 159 ( 39%) ............................................................... 126 / 159 ( 79%) ................................., (*5)

Time: 1 second, Memory: 10.00Mb, (*6)

OK (159 tests, 180 assertions) ~~~, (*7)

Test Files

The Versions

12/03 2015

dev-master

9999999-dev https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.3

 

array underscore ruby enumerator

16/09 2013

dev-feature/foo

dev-feature/foo https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.3

 

array underscore ruby enumerator

05/09 2013

dev-dev

dev-dev https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.3

 

array underscore ruby enumerator

05/09 2013

1.0.5

1.0.5.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.3

 

array underscore ruby enumerator

27/08 2013

1.0.4

1.0.4.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.3

 

array underscore ruby enumerator

27/08 2013

1.0.3

1.0.3.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.10

 

array underscore ruby enumerator

27/08 2013

1.0.2

1.0.2.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.10

 

array underscore ruby enumerator

26/08 2013

1.0.1

1.0.1.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.10

 

array underscore ruby enumerator

21/08 2013

1.0.0

1.0.0.0 https://github.com/BlaineSch/prettyArray

Manipulate arrays similar to Ruby.

  Sources   Download

The BSD License

The Requires

  • php >=5.3.10

 

array underscore ruby enumerator