PHPackages                             mtoolkit/mtoolkit-model - 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. [Framework](/categories/framework)
4. /
5. mtoolkit/mtoolkit-model

ActiveLibrary[Framework](/categories/framework)

mtoolkit/mtoolkit-model
=======================

The model module of MToolkit framework

0.0.3(8y ago)0392LGPL-3.0+PHPPHP &gt;=5.3.0

Since May 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mtoolkit/mtoolkit-model)[ Packagist](https://packagist.org/packages/mtoolkit/mtoolkit-model)[ Docs](http://mtoolkit.github.io/mtoolkit/)[ RSS](/packages/mtoolkit-mtoolkit-model/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (2)

MToolkit - Model
================

[](#mtoolkit---model)

The model module of [MToolkit](https://github.com/mtoolkit/mtoolkit) framework.

Summary
=======

[](#summary)

- [Intro](#intro)

\#Intro The module provides the classes to represent x-dimensional models, as list or table. There are a submodule about the sql models: to run a query, to retrieve a resultset, etc...

MDbConnection
-------------

[](#mdbconnection)

It provides a simple singleton way to store the connection to the database. Usages:

```
// Add a new connection string
MDbConnection::addDbConnection( new \PDO( 'mysql:host=127.0.0.1;dbname=test_db', 'root', 'password' ) );

// Retrieve the database connection
$connection = MDbConnection::getDbConnection();
```

MPDOQuery and MPDOResult
------------------------

[](#mpdoquery-and-mpdoresult)

Usages:

```
$query = "SELECT item_01 FROM table_01";
$connection = MDbConnection::getDbConnection();
$sql = new MPDOQuery( $query, $connection );
$sql->bindValue( $key );
$sql->exec();
$result = $sql->getResult();
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.4% 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 ~264 days

Total

3

Last Release

3157d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16403140?v=4)[MToolkit framework project](/maintainers/mtoolkit)[@mtoolkit](https://github.com/mtoolkit)

---

Top Contributors

[![MpStyle](https://avatars.githubusercontent.com/u/527046?v=4)](https://github.com/MpStyle "MpStyle (11 commits)")[![mtoolkit](https://avatars.githubusercontent.com/u/16403140?v=4)](https://github.com/mtoolkit "mtoolkit (10 commits)")

---

Tags

phpframeworklibrarySimplefastfreenettoolkitqtweb framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mtoolkit-mtoolkit-model/health.svg)

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

###  Alternatives

[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

924.2k3](/packages/digitalstars-simplevk)[usbac/wolff-framework

Web development made just right

381.2k1](/packages/usbac-wolff-framework)

PHPackages © 2026

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