PHPackages                             divengine/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. divengine/matrix

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

divengine/matrix
================

Div PHP Matrix

1.3.0(2y ago)515GPL-3.0-or-laterPHPPHP &gt;=8.0.0

Since Jan 14Pushed 4mo agoCompare

[ Source](https://github.com/divengine/matrix)[ Packagist](https://packagist.org/packages/divengine/matrix)[ Docs](https://divengine.org/docs/div-php-matrix)[ RSS](/packages/divengine-matrix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Div PHP Matrix
==============

[](#div-php-matrix)

[![Latest Stable Version](https://camo.githubusercontent.com/b93d29c201ebd7df4968c86543b80e69294dfdb494bfa11753e32e257d4d4131/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f76)](https://packagist.org/packages/divengine/matrix) [![Total Downloads](https://camo.githubusercontent.com/b307ef59fb866b9e87a578401e8ea0639231d0d1ef88a523eaba1cdd2ee7d08e/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f646f776e6c6f616473)](https://packagist.org/packages/divengine/matrix) [![Latest Unstable Version](https://camo.githubusercontent.com/c182c94017ebc5f1757114bcd2a8ea8861b8d17b33aa7fdae3b996676d3b94b3/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f762f756e737461626c65)](https://packagist.org/packages/divengine/matrix) [![License](https://camo.githubusercontent.com/c642cc5d38e858a33c8861d004bb0cdfdfad1a4cf369610bc9f8e5f59bc0719c/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f6c6963656e7365)](https://packagist.org/packages/divengine/matrix) [![PHP Version Require](https://camo.githubusercontent.com/2ac64cb48605a004cf6ccf8238469bf809ebab8e45b000719a7b50d8f4716022/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f726571756972652f706870)](https://packagist.org/packages/divengine/matrix)

[![Latest Stable Version](https://camo.githubusercontent.com/b93d29c201ebd7df4968c86543b80e69294dfdb494bfa11753e32e257d4d4131/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f76)](https://packagist.org/packages/divengine/matrix)[![Total Downloads](https://camo.githubusercontent.com/b307ef59fb866b9e87a578401e8ea0639231d0d1ef88a523eaba1cdd2ee7d08e/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f646f776e6c6f616473)](https://packagist.org/packages/divengine/matrix)[![Latest Unstable Version](https://camo.githubusercontent.com/6d2a06a746d922aad5da3e9ed7cedf1cd7191c027cd749d5e3bee293e691ce16/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6469762f762f756e737461626c65)](https://packagist.org/packages/divengine/matrix)[![License](https://camo.githubusercontent.com/c642cc5d38e858a33c8861d004bb0cdfdfad1a4cf369610bc9f8e5f59bc0719c/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f6c6963656e7365)](https://packagist.org/packages/divengine/matrix)[![PHP Version Require](https://camo.githubusercontent.com/2ac64cb48605a004cf6ccf8238469bf809ebab8e45b000719a7b50d8f4716022/68747470733a2f2f706f7365722e707567782e6f72672f646976656e67696e652f6d61747269782f726571756972652f706870)](https://packagist.org/packages/divengine/matrix)

This dynamic matrix manipulation class in PHP goes beyond conventional operations, offering dynamic calculations and diverse output formats for versatile applications.

It introduces a layer of dynamic logic where cells execute functions, allowing for flexible backend logic. The true power lies in crafting robust backend logic, akin to spreadsheet functionalities tailored for web development. Automatic recalculation is notable, but its strength lies in facilitating complex business logic.

Consider it as a tool for architecting backend logic using a spreadsheet-like paradigm. Dynamic calculations create interconnected matrices, triggering logical events across cells and matrices seamlessly.

The library empowers developers to create responsive systems, adapting to user interactions. Exporting data in various formats, including XML and JSON, extends its utility in web development.

A cell's ability to execute dynamic logic is a game-changer, allowing intricate and adaptable behavior defined by a function. Activating or deactivating cells opens possibilities to tailor business logic on-the-fly.

In essence, Div PHP Matrix not only facilitates dynamic recalculations but empowers adaptive backend logic. Its fluid response, driven by cell activation and deactivation, showcases potential in crafting dynamic applications.

The library seamlessly integrates with other divengine/\* projects (div, ways, nodes, ajaxmap &amp; orm), forming a comprehensive and non-obtrusive toolkit for PHP developers, enhancing dynamic backend capabilities.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher

Installation
------------

[](#installation)

```
composer require divengine/matrix
```

Documentation
-------------

[](#documentation)

Examples
--------

[](#examples)

See "examples" folder.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

4

Last Release

833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b506fc05da7cae848732978887e03eb4cf5a71a05a665d67eea342320f9cbbb?d=identicon)[rafageist](/maintainers/rafageist)

---

Top Contributors

[![rafageist](https://avatars.githubusercontent.com/u/25892480?v=4)](https://github.com/rafageist "rafageist (24 commits)")

---

Tags

matrix manipulationspreadsheets featuresbackend logic

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/divengine-matrix/health.svg)

```
[![Health](https://phpackages.com/badges/divengine-matrix/health.svg)](https://phpackages.com/packages/divengine-matrix)
```

###  Alternatives

[spatie/sun

Get information on the position of the sun

73165.5k3](/packages/spatie-sun)[cakemanager/cakephp-utils

Plugin for CakePHP 3.x with useful components and behaviors

3180.5k4](/packages/cakemanager-cakephp-utils)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
