PHPackages                             mcl/mcldb - 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. [Database &amp; ORM](/categories/database)
4. /
5. mcl/mcldb

ActiveLibrary[Database &amp; ORM](/categories/database)

mcl/mcldb
=========

v1.0.1.x-dev(4y ago)028[1 PRs](https://github.com/MarceloOProgramador/mcldb/pulls)MITPHPPHP ^7.4CI failing

Since Jul 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/MarceloOProgramador/mcldb)[ Packagist](https://packagist.org/packages/mcl/mcldb)[ RSS](/packages/mcl-mcldb/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Description
===========

[](#description)

This libary is a simple database CRUD with some functions. It is created with private intention of studying php by **Marcelo Pereira**.

- Github:
- E-mail:
- CURRENT VERSION: 1.0.0
- LICENSE: MIT

---

EXAMPLES
--------

[](#examples)

#### INSERT EXAMPLE

[](#insert-example)

```
$create_instance = new Create();
$user = [
    "name"  => "Example name",
    "email" => "example@example.com"
];
$table_name = "users";

$create_instance->toCreate($table_name, $user);
$create_instance->exec();

```

---

### READ EXAMPLE

[](#read-example)

```
$read_instance = new Read();
$table_example = "users";
$read_instance->toRead($table_example)->where("id", "=", 1);
$user = $read_instance->fetch();

```

---

### UPDATE EXAMPLE

[](#update-example)

```
$table_name = "users";
$update_instance = new Update();
$read_instance = new Read();

$read_instance->toRead($table_name)->where("id", "=", 1);
$user = $read_instance->fetch()[0]; //return array

$user["name"] = "Name updated";
$user["email"] = "update@update.com";

$update_instance->toUpdate($table_name, $user)->where("id", "=", $user["id"]);
$update_instance->exec();

$user["name"] = "Name updated";
$user["email"] = "update@update.com";

$update_instance->toUpdate($table_name, $user)->where("id", "=", $user["id"]);
$update_instance->exec();

```

---

### DELETE EXAMPLE

[](#delete-example)

```
$table_name = "users";
$read_instance = new Read();
$delete_instance = new Delete();

$read_instance->toRead($table_name)->where("id", "=", 1);
$user = $read_instance->fetch()[0];

$delete_instance->toDelete($table_name)->where("id", "=", $user["id"]);
$delete_instance->exec();

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance53

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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

Unknown

Total

1

Last Release

1776d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41973092?v=4)[Marcelo Pereira](/maintainers/MarceloOProgramador)[@MarceloOProgramador](https://github.com/MarceloOProgramador)

---

Top Contributors

[![imstring112](https://avatars.githubusercontent.com/u/170209658?v=4)](https://github.com/imstring112 "imstring112 (14 commits)")[![MarceloOProgramador](https://avatars.githubusercontent.com/u/41973092?v=4)](https://github.com/MarceloOProgramador "MarceloOProgramador (4 commits)")[![it4pay](https://avatars.githubusercontent.com/u/50344168?v=4)](https://github.com/it4pay "it4pay (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mcl-mcldb/health.svg)

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

###  Alternatives

[mukadi/wordpress-bundle

Integrate wordpress and symfony in the same application

212.8k1](/packages/mukadi-wordpress-bundle)

PHPackages © 2026

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