PHPackages                             maps\_red/orm - 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. maps\_red/orm

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

maps\_red/orm
=============

v1.0.3(9y ago)049PHP

Since Aug 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Mapsred/ORM)[ Packagist](https://packagist.org/packages/maps_red/orm)[ RSS](/packages/maps-red-orm/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

\#ORM

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

[](#installation)

1. Use [Composer](https://getcomposer.org/) to download the library

```
php composer.phar require maps_red/orm dev-master

```

2. Then create a file to initiate the ORM config

```
// config.php
// You need to give the following parameters :
//db_name, db_host, db_user, db_pass, namespace_entity, namespace_repository,
//dir_entity, dir_repository

require_once(__DIR__."/../vendor/autoload.php");

//Manually

\Maps_red\Kernel::setDbName($db_name)->setDbHost($db_host)->setDbuser($db_user)
    ->setDbPass($db_pass)->setNamespaceEntity($namespace_entity)
    ->setNamespaceRepository($namespace_repository)
    ->setDirEntity($dir_entity)->setDirRepository($dir_repository);

//From config array

\Maps_red\Kernel::setByArray($parameters);
```

3. Extend the console

```
//console.php
require_once("config.php");
require_once(__DIR__."/../vendor/maps_red/orm/console");
```

4. Generate your content

```
php console.php generator:entity table_name
php console.php generator:repository table_name
or
php console.php generator:both table_name

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~43 days

Total

4

Last Release

3481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6e467db56e8e494b60ebc4f9fc8407c8025f0d724d9d0499466b8d07d3090d6?d=identicon)[maps\_red](/maintainers/maps_red)

---

Top Contributors

[![Mapsred](https://avatars.githubusercontent.com/u/13522273?v=4)](https://github.com/Mapsred "Mapsred (32 commits)")

### Embed Badge

![Health badge](/badges/maps-red-orm/health.svg)

```
[![Health](https://phpackages.com/badges/maps-red-orm/health.svg)](https://phpackages.com/packages/maps-red-orm)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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