A generic php class for pivoting matrix data from structured databases.