PHPackages                             umanit-pomm/model-manager - 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. umanit-pomm/model-manager

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

umanit-pomm/model-manager
=========================

PHP Object Model Manager for Postgresql

2.2.0(3y ago)06.3k↓27.3%2MITPHPPHP &gt;=5.4.4

Since Dec 15Pushed 1y agoCompare

[ Source](https://github.com/Umanit-Pomm/ModelManager)[ Packagist](https://packagist.org/packages/umanit-pomm/model-manager)[ RSS](/packages/umanit-pomm-model-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (2)

Pomm ModelManager
=================

[](#pomm-modelmanager)

[![Latest Stable Version](https://camo.githubusercontent.com/dfd26cc14a39e96a116cdc15e9416d6eb956c8d486f1b3c8f97be5497a072359/68747470733a2f2f706f7365722e707567782e6f72672f706f6d6d2d70726f6a6563742f6d6f64656c2d6d616e616765722f762f737461626c65)](https://packagist.org/packages/pomm-project/model-manager) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/20bfbe76fe4ffa753e9d1711c87b7ea26c1aa6c4525742611cbeadabbcd54856/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706f6d6d2d70726f6a6563742f4d6f64656c4d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pomm-project/ModelManager/?branch=master) [![Build Status](https://camo.githubusercontent.com/489f287e8e3a523fd659883244fb582104745a6b42b1f8a440136bfaa01240e9/68747470733a2f2f7472617669732d63692e6f72672f706f6d6d2d70726f6a6563742f4d6f64656c4d616e616765722e737667)](https://travis-ci.org/pomm-project/ModelManager) [![Monthly Downloads](https://camo.githubusercontent.com/34ea4bff684d8ac2973761a4b84bd89102624ecdcb65505c2f1025e43b69ef05/68747470733a2f2f706f7365722e707567782e6f72672f706f6d6d2d70726f6a6563742f6d6f64656c2d6d616e616765722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/pomm-project/model-manager) [![License](https://camo.githubusercontent.com/d475e1f5b138a07e4afc435fb68dc35adadf5004514399a25c156cee07f1c2bc/68747470733a2f2f706f7365722e707567782e6f72672f706f6d6d2d70726f6a6563742f6d6f64656c2d6d616e616765722f6c6963656e73652e737667)](https://packagist.org/packages/pomm-project/model-manager)

ModelManager is a [Pomm project](http://www.pomm-project.org) package. It makes developers able to manage entities upon the database through model classes. **It is not an ORM**, it grants developers with the ability to perform native queries using all of Postgres’SQL and use almost all its types. This makes model layer to meet with performances while staying lean.

This package will provide:

- Model classes with all common built-in queries (CRUD but also, `count` and `exists`).
- Flexible entities
- Embedded entities converter
- Model Layer to group model computations in transactions.

The model layer also proposes methods to leverage Postgres nice transaction settings (constraint deferring, isolation levels, read / write access modes etc.).

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

[](#installation)

Pomm components are available on [packagist](https://packagist.org/packages/pomm-project/) using [composer](https://packagist.org/). To install and use Pomm's model manager, add a require line to `"pomm-project/model-manager"` in your `composer.json` file. It is advised to install the [CLI package](https://github.com/pomm-project/Cli) as well.

In order to load the model manager's poolers at startup, it is possible to use the provided `SessionBuilder` in Pomm's configuration:

```
$pomm = new Pomm([
    'project_name' => [
        'dsn' => …,
        'class:session_builder' => '\PommProject\ModelManager\SessionBuilder',
    ],
    …
]);
```

It is better to provide dedicated session builders with your project.

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

[](#documentation)

The model manager’s documentation is available [either online](https://github.com/pomm-project/ModelManager/blob/master/documentation/model_manager.rst) or directly in the `documentation` folder.

Tests
-----

[](#tests)

This package uses Atoum as unit test framework. The tests are located in `sources/tests`. This package also provides a `ModelSessionAtoum` class so the test classes can directly get sessions with the `model` and `model layer` poolers loaded.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 85.5% 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 ~327 days

Recently: every ~664 days

Total

10

Last Release

1221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27f13221fde4957c93a4ed7293a6460272d626e53df227e3aae4f35aa9289e69?d=identicon)[DjLeChuck](/maintainers/DjLeChuck)

![](https://www.gravatar.com/avatar/ed95d9d6f262723347ae84c1e30a19da4cd88dac1990058156359716713612e6?d=identicon)[npanau](/maintainers/npanau)

![](https://www.gravatar.com/avatar/8b42188cdb5d776997ee5e465f8df950c0ef9847ad3e4589dda4a3c1f15b5dc7?d=identicon)[Nedeas](/maintainers/Nedeas)

---

Top Contributors

[![chanmix51](https://avatars.githubusercontent.com/u/81580?v=4)](https://github.com/chanmix51 "chanmix51 (207 commits)")[![stood](https://avatars.githubusercontent.com/u/327248?v=4)](https://github.com/stood "stood (11 commits)")[![sanpii](https://avatars.githubusercontent.com/u/113045?v=4)](https://github.com/sanpii "sanpii (9 commits)")[![DjLeChuck](https://avatars.githubusercontent.com/u/696780?v=4)](https://github.com/DjLeChuck "DjLeChuck (5 commits)")[![ronanguilloux](https://avatars.githubusercontent.com/u/313677?v=4)](https://github.com/ronanguilloux "ronanguilloux (4 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![webaaz](https://avatars.githubusercontent.com/u/489498?v=4)](https://github.com/webaaz "webaaz (2 commits)")[![Pierozi](https://avatars.githubusercontent.com/u/5133487?v=4)](https://github.com/Pierozi "Pierozi (1 commits)")[![Nedeas](https://avatars.githubusercontent.com/u/4601729?v=4)](https://github.com/Nedeas "Nedeas (1 commits)")

---

Tags

databaseormpostgresqlpomm

### Embed Badge

![Health badge](/badges/umanit-pomm-model-manager/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[pomm-project/model-manager

PHP Object Model Manager for Postgresql

69281.6k6](/packages/pomm-project-model-manager)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[pomm-project/pomm-bundle

The Symfony2 bundle for Pomm2

81198.7k4](/packages/pomm-project-pomm-bundle)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)[pomm-project/cli

Command line for Pomm.

19243.5k4](/packages/pomm-project-cli)

PHPackages © 2026

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