# MarkBaker/PHPMatrix

PHP Class for handling Matrices

Repository: https://github.com/MarkBaker/PHPMatrix
Canonical: https://ross.abutalabs.com/products/phpmatrix
Language: PHP
License: MIT
License Family: permissive
Last push: 2024-04-13T08:30:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2946, "days_push": 872, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1514, forks 14 (observed 2026-08-28T04:04:56.313120+00:00)

## What it is
A PHP library providing a Matrix class with common linear algebra operations such as addition, multiplication, inverse, determinant, transpose, and LU/QR decomposition. It is installable via Composer and designed for use in PHP applications needing matrix math.

## Use cases
- perform matrix multiplication in php
- calculate the determinant of a matrix in php
- invert a matrix in php
- solve linear equations A.X = B in php
- compute LU or QR decomposition in php
- transpose or find the trace of a matrix in php

## When to choose
- you need basic matrix operations in a PHP project
- you want a lightweight Composer-installable linear algebra library
- you need LU or QR decomposition in PHP

## When to avoid
- you need eigenvalue decomposition or Cholesky decomposition (not yet implemented)
- you need high-performance numerical computing (use a native extension or another language)
- you need tensors or N-dimensional arrays rather than 2D matrices

## Facets
- artifact type: library
- maturity: stable
- function: math
- domain: mathematics
- platform: php
- tags: matrix, linear-algebra, determinant, lu-decomposition, qr-decomposition, composer, algorithms

## Member repositories
- MarkBaker/PHPMatrix (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:56.313120+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:11.370161+00:00, confidence not recorded.
  - readme: https://github.com/MarkBaker/PHPMatrix (fetched 2026-08-28T04:04:56.313120+00:00, sha 1a06fa50c0c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
