This is a pure-PHP library that implements multivariate linear regression using linear algebra. The Moore-Penrose pseudoinverse is used in the computation of the coefficient matrix. The source was written by Shankar Manamalkav, and the original files can be found on his blog.