2017 © Pedro Peláez
 

library matrix

Matrix -- a simple way to write fluent codes handing 2D data -- handling array of array is so easy!

image

clarence/matrix

Matrix -- a simple way to write fluent codes handing 2D data -- handling array of array is so easy!

  • Wednesday, May 25, 2016
  • by Clarence-pan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Matrix

Matrix - yet another tool for operating arrays, especially two-dimensional arrays., (*1)

Usage

Provided a data source containing two columns - productId and productName, if only rows whose productId is bigger than 5 are needed, and if a key-value structure (key is productName) is needed, it can be solved like this:, (*2)

$data = Matrix::from($dataSource)
      ->select(array('productId' => 'id', 'productName'))
      ->where(function ($row) {
          return $row['id'] > 5;
      })
      ->orderBy('id', SORT_DESC)
      ->indexedBy('productName')
      ->toArray();

The Versions

25/05 2016

dev-master

9999999-dev

Matrix -- a simple way to write fluent codes handing 2D data -- handling array of array is so easy!

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Avatar Clarence

25/05 2016

v1.0.0

1.0.0.0

Matrix -- a simple way to write fluent codes handing 2D data -- handling array of array is so easy!

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Avatar Clarence