PHP Classes

Div PHP Matrix Library: Define matrices with dynamic cell calculations

Recommend this page to a friend!
  Info   View files Documentation   Videos Videos   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-02-02 (29 days ago) RSS 2.0 feedNot enough user ratingsTotal: 46 This week: 3All time: 10,692 This week: 32Up
Version License PHP version Categories
divengine-matrix 1.3.0GNU General Publi...8Tools, Data types, Math, PHP 8
Description 

Author

This package provides functionality for defining and manipulating matrices, offering various output formats.

It accepts a bidimensional array to initialize the matrix with cell values.

This package offers flexibility in matrix manipulation, enabling dynamic calculations and providing diverse output options for ease of integration into various applications.
Key features include:


* Matrix operations

- Add or remove rows and columns.

- Set values for specific matrix positions.

- Populate matrix values dynamically using custom functions.


* Dynamic Recalculation

- Matrix cells support dynamic calculations based on other cells, allowing changes to trigger a recalculation of dependent cells automatically, akin to Excel's behavior.


* Output Formats:

- Display matrix values in multiple formats, such as plain text, CSV, XML, JSON, HTML table, Markdown, YAML, and SQL insert statements.

Innovation Award
PHP Programming Innovation award nominee
January 2024
Nominee
Vote
A matrix data type can store many values, like a table.

Several types of applications need to perform operations on data stored in a matrix.

This package can perform several operations in a matrix and output the resulting matrix in several formats like CSV, XML, JSON, HTML table, Markdown, YAML, and SQL.

This way, this package can be used by applications that need to convert matrix data to a format that other applications can use.

Manuel Lemos
Picture of Rafa Rodriguez
  Performance   Level  
Name: Rafa Rodriguez <contact>
Classes: 6 packages by
Country: Suriname Suriname
Age: 37
All time rank: 17611 in Suriname Suriname
Week rank: 39 Up1 in Suriname Suriname Equal
Innovation award
Innovation award
Nominee: 3x

Documentation

Div PHP Matrix 1.3

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 & orm), forming a comprehensive and non-obtrusive toolkit for PHP developers, enhancing dynamic backend capabilities.

Requirements

  • PHP 8.0 or higher

Installation

composer require divengine/matrix

Documentation

https://divengine.org/

Examples

See "examples" folder.


Videos  
  • Div PHP Matrix - Basic features
  Files folder image Files  
File Role Description
Files folder imageexamples (11 files, 2 directories)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  examples  
File Role Description
Files folder imagedata (1 file)
Files folder imagehandlers (6 files)
  Accessible without login Plain text file calculations.php Example Example script
  Accessible without login Plain text file cells.php Example Example script
  Accessible without login Plain text file create.php Example Example script
  Plain text file custom.php Class Class source
  Accessible without login Plain text file edit.php Example Example script
  Plain text file extends.php Class Class source
  Accessible without login Plain text file grouping.php Example Example script
  Accessible without login Plain text file router.php Example Example script
  Plain text file router_oop.php Class Class source
  Accessible without login Plain text file simple.php Example Example script
  Accessible without login Plain text file worksheet.php Example Example script

  Files folder image Files  /  examples  /  data  
File Role Description
  Accessible without login Plain text file matrix.json Data Auxiliary data

  Files folder image Files  /  examples  /  handlers  
File Role Description
  Accessible without login Plain text file 404.php Aux. Auxiliary script
  Accessible without login Plain text file about.php Aux. Auxiliary script
  Accessible without login Plain text file admin.php Aux. Auxiliary script
  Accessible without login Plain text file home.php Aux. Auxiliary script
  Accessible without login Plain text file log.php Aux. Auxiliary script
  Accessible without login Plain text file login.php Aux. Auxiliary script

  Files folder image Files  /  src  
File Role Description
  Plain text file matrix.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:46
This week:3
All time:10,692
This week:32Up