PHPackages                             busybrain/matrix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. busybrain/matrix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

busybrain/matrix
================

a simple php library for playing with matrices

v1.0.1(5y ago)173[1 PRs](https://github.com/prof-anis/matrix/pulls)MITPHPPHP ^7.2CI failing

Since Apr 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/prof-anis/matrix)[ Packagist](https://packagist.org/packages/busybrain/matrix)[ RSS](/packages/busybrain-matrix/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Looking at this 2 years after i wrote this code and i am only glad at the progress i have made :)
=================================================================================================

[](#looking-at-this-2-years-after-i-wrote-this-code-and-i-am-only-glad-at-the-progress-i-have-made-)

 [![](https://camo.githubusercontent.com/290e19c24c063f5d4b92781200cf4946df9b5d7e880d742d1817fce86fc86f9c/68747470733a2f2f6d6174726978323031383836313539303933362e66696c65732e776f726470726573732e636f6d2f323031382f30352f6c6f676f6d61747269782e6a7067)](https://camo.githubusercontent.com/290e19c24c063f5d4b92781200cf4946df9b5d7e880d742d1817fce86fc86f9c/68747470733a2f2f6d6174726978323031383836313539303933362e66696c65732e776f726470726573732e636f6d2f323031382f30352f6c6f676f6d61747269782e6a7067)
 A simple, fluent and stable PHP library for playing around with matrices

 [![Build Status](https://camo.githubusercontent.com/8ccfabe6e42f68718fa0f2ad5f39bb6df32019314c7ce315e3c8464bf2bed4ed/68747470733a2f2f7472617669732d63692e636f6d2f70726f662d616e69732f6d61747269782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prof-anis/matrix)

SIMPLE PHP LIBRARY FOR PLAYING WITH MATRICES
--------------------------------------------

[](#simple-php-library-for-playing-with-matrices)

The focus of this project is simplicity, beautiful syntax and speed. It allows you work seemlessly with matrices in php. It comes with a handful of methods that you can use to write your own matrix logics

Getting started
---------------

[](#getting-started)

You can create an instance of the class using the new keyword and immediately call the set mathod which sets a matrix value into the class ready for manipulation. Each matrix instance must be a multidimensional array.

```

```

Validation
----------

[](#validation)

you can run valiation on a matrix against a set of attributes using the validate method . The validation options currently supported are

dim:row,col ------- checks if the matrix dimension matches the option given square --------- checks if the matrix is a square matrix singualr ------- checks if the matrix is a singular matrix

```
