PHPackages                             quidphp/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. quidphp/orm

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

quidphp/orm
===========

PHP library that provides database access and a comprehensive ORM

5.31.0(3y ago)5209↓66.7%1MITPHPPHP &gt;=8.1.0

Since Sep 17Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/quidphp/orm)[ Packagist](https://packagist.org/packages/quidphp/orm)[ Docs](https://quidphp.com)[ RSS](/packages/quidphp-orm/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

QuidPHP/Orm
===========

[](#quidphporm)

[![Release](https://camo.githubusercontent.com/0ecf9b6ad8573d7c97b8e984daad9987ea37248bfe9a43982b5f09252888a6b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f717569647068702f6f726d)](https://packagist.org/packages/quidphp/orm)[![License](https://camo.githubusercontent.com/9e689af7a2df0d159dd3ced57f944be6ca94fac62c761a0f07d63c78ddede53d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f717569647068702f6f726d)](https://github.com/quidphp/orm/blob/master/LICENSE)[![PHP Version](https://camo.githubusercontent.com/e706784f3472bd4fa966e300e0292bdeacb2603a4cc08ca9b1021a1115fda25a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f717569647068702f6f726d)](https://www.php.net)[![Style CI](https://camo.githubusercontent.com/122e446b2d84bb0fa4400db83c830725b592565a010c1ebe3b0f4dd28b7859b0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3230333637323538382f736869656c64)](https://styleci.io)[![Code Size](https://camo.githubusercontent.com/8b09097d6058d502225952f7d9d670d85df5a53e65e1e5fc30a553ed72129e57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f717569647068702f6f726d)](https://github.com/quidphp/orm)

About
-----

[](#about)

**QuidPHP/Orm** is a PHP library that provides database abstraction using PDO and an easy-to-use Object-Relational Mapper (ORM). It is part of the [QuidPHP](https://github.com/quidphp/project) package and can also be used standalone.

License
-------

[](#license)

**QuidPHP/Orm** is available as an open-source software under the [MIT license](LICENSE).

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

[](#documentation)

**QuidPHP/Orm** documentation is available at [QuidPHP/Docs](https://github.com/quidphp/docs).

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

[](#installation)

**QuidPHP/Orm** can be easily installed with [Composer](https://getcomposer.org). It is available on [Packagist](https://packagist.org/packages/quidphp/orm).

```
$ composer require quidphp/orm
```

Once installed, the **Quid\\Orm** namespace will be available within your PHP application.

Requirement
-----------

[](#requirement)

**QuidPHP/Orm** requires the following:

- PHP 8.1 with these extensions:
    - PDO
    - pdo\_mysql
- Mysql (&gt;= 8.0) or MariaDB (&gt;= 10.4) database
- All requirements of [quidphp/main](https://github.com/quidphp/main)

Dependency
----------

[](#dependency)

**QuidPHP/Orm** has the following dependency:

- [quidphp/main](https://github.com/quidphp/main) - Quid\\Main - PHP library that provides a set of base objects and collections

The dependency will be resolved by using the [Composer](https://getcomposer.org) installation process.

Comment
-------

[](#comment)

**QuidPHP/Orm** code is commented and all methods are explained (in French).

Convention
----------

[](#convention)

**QuidPHP/Orm** is built on the following conventions:

- *Coding*: No curly braces are used in a IF statement if the condition can be resolved in only one statement.
- *Config*: A special $config static property exists in all classes. This property gets recursively merged with the parents' property on initialization.
- *Dynamic singleton*: Table, Col, Row and Cell objects can only exist once for a same source.
- *Traits*: Traits filenames start with an underscore (\_).
- *Type*: Files, function arguments and return types are strict typed.

Overview
--------

[](#overview)

**QuidPHP/Orm** contains 45 classes and traits. Here is an overview:

- [CatchableException](src/CatchableException.php) - Class used for a catchable database query exception
- [Cell](src/Cell.php) - Class to represent an existing cell within a row
- [Cells](src/Cells.php) - Class for a collection of many cells within a same row
- [CellsIndex](src/CellsIndex.php) - Class for a collection of cells within different tables (keys are indexed)
- [CellsMap](src/CellsMap.php) - Root class for a collection of cells
- [Classe](src/Classe.php) - Class required to identify which class needs to be used by the different ORM components
- [Col](src/Col.php) - Class to represent an existing column within a table
- [ColRelation](src/ColRelation.php) - Class to access the relation data of a column
- [ColSchema](src/ColSchema.php) - Class used to parse the information schema of a column
- [Cols](src/Cols.php) - Class for a collection of many columns within a same table
- [ColsIndex](src/ColsIndex.php) - Class for a collection of cols within different tables (keys are indexed)
- [ColsMap](src/ColsMap.php) - Root class for a collection of cols
- [Db](src/Db.php) - Class used to query the database and to link the results to the different ORM components
- [Exception](src/Exception.php) - Class used for a database query exception
- [History](src/History.php) - Class used to store the history of requests made to the database object
- [Lang](src/Lang.php) - Extended class for an object containing language texts related to the database
    - [En](src/Lang/En.php) - English language content used by this namespace
    - [Fr](src/Lang/Fr.php) - French language content used by this namespace
- [Map](src/Map.php) - Root class for a collection of cells, cols or rows
- [Operation](src/Operation.php) - Abstract class used for a complex operation on the database
    - [Delete](src/Operation/Delete.php) - Class used for a delete operation on a table row
    - [Insert](src/Operation/Insert.php) - Class used for a insert operation on a table
    - [Truncate](src/Operation/Truncate.php) - Class used for a truncate operation on a table
    - [Update](src/Operation/Update.php) - Class used for an update operation on a table row
- [Pdo](src/Pdo.php) - Class used to query the database using the PDO object
- [PdoSql](src/PdoSql.php) - Class used to build an sql query in a object-oriented way, not linked to ORM components
- [Relation](src/Relation.php) - Abstract class that is extended by ColRelation and Relation
- [Row](src/Row.php) - Class to represent an existing row within a table
- [RowOperation](src/RowOperation.php) - Abstract class used for a complex operation on a table row
- [Rows](src/Rows.php) - Class for a collection of many rows within a same table
- [RowsIndex](src/RowsIndex.php) - Class for a collection of rows within different tables (keys are indexed)
- [RowsMap](src/RowsMap.php) - Root class for a collection of rows
- [Schema](src/Schema.php) - Class that provides a schema for a database with tables and columns information
- [Sql](src/Sql.php) - Class used to build a sql query in a object-oriented way, uses the DB class (linked to the ORM components)
- [Syntax](src/Syntax.php) - Abstract class with static methods to generate SQL syntax
    - [Mysql](src/Syntax/Mysql.php) - Class with static methods to generate MySQL syntax strings (compatible with MySQL and MariaDB)
- [Table](src/Table.php) - Class to represent an existing table within a database
- [TableClasse](src/TableClasse.php) - Class required to identify which class needs to be used by the different ORM components of a table
- [TableOperation](src/TableOperation.php) - Abstract class used for a complex operation on a database table
- [TableRelation](src/TableRelation.php) - Class to access the relation data of a table
- [Tables](src/Tables.php) - Class for a collection of many tables within a same database
- [\_colCell](src/_colCell.php) - Trait that provides common methods for Col and Cell objects
- [\_dbAccess](src/_dbAccess.php) - Trait that grants database access to the class using
- [\_mapIndex](src/_mapIndex.php) - Trait that grants common methods for indexed collections (cols, cells, rows)
- [\_tableAccess](src/_tableAccess.php) - Trait that grants table access to the class using

### Testing

[](#testing)

**QuidPHP/Orm** contains 26 test classes:

- [CatchableException](test/CatchableException.php) - Class for testing Quid\\Orm\\CatchableException
- [Cell](test/Cell.php) - Class for testing Quid\\Orm\\Cell
- [Cells](test/Cells.php) - Class for testing Quid\\Orm\\Cells
- [CellsIndex](test/CellsIndex.php) - Class for testing Quid\\Orm\\CellsIndex
- [Classe](test/Classe.php) - Class for testing Quid\\Orm\\Classe
- [Col](test/Col.php) - Class for testing Quid\\Orm\\Col
- [ColRelation](test/ColRelation.php) - Class for testing Quid\\Orm\\ColRelation
- [ColSchema](test/ColSchema.php) - Class for testing Quid\\Orm\\ColSchema
- [Cols](test/Cols.php) - Class for testing Quid\\Orm\\Cols
- [ColsIndex](test/ColsIndex.php) - Class for testing Quid\\Orm\\ColsIndex
- [Db](test/Db.php) - Class for testing Quid\\Orm\\Db
- [Exception](test/Exception.php) - Class for testing Quid\\Orm\\Exception
- [History](test/History.php) - Class for testing Quid\\Orm\\History
- [Lang](test/Lang.php) - Class for testing Quid\\Orm\\Lang
- [Pdo](test/Pdo.php) - Class for testing Quid\\Orm\\Pdo
- [PdoSql](test/PdoSql.php) - Class for testing Quid\\Orm\\PdoSql
- [Row](test/Row.php) - Class for testing Quid\\Orm\\Row
- [Rows](test/Rows.php) - Class for testing Quid\\Orm\\Rows
- [RowsIndex](test/RowsIndex.php) - Class for testing Quid\\Orm\\RowsIndex
- [Schema](test/Schema.php) - Class for testing Quid\\Orm\\Schema
- [Sql](test/Sql.php) - Class for testing Quid\\Orm\\Sql
- [Syntax](test/Syntax.php) - Class for testing Quid\\Orm\\Syntax
- [Table](test/Table.php) - Class for testing Quid\\Orm\\Table
- [TableClasse](test/TableClasse.php) - Class for testing Quid\\Orm\\TableClasse
- [TableRelation](test/TableRelation.php) - Class for testing Quid\\Orm\\TableRelation
- [Tables](test/Tables.php) - Class for testing Quid\\Orm\\Tables

**QuidPHP/Orm** testsuite can be run by creating a new [QuidPHP/Assert](https://github.com/quidphp/assert) project.

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance50

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

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

Total

5

Last Release

1407d ago

PHP version history (3 changes)5.27.0PHP &gt;=7.3.0

5.30.0PHP &gt;=7.4.0

5.31.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fce706f1ee9fc0052e58ea6b87ecba89474f64c31b78c7e9aba628702290709?d=identicon)[emondpph](/maintainers/emondpph)

---

Top Contributors

[![emondpph](https://avatars.githubusercontent.com/u/1444427?v=4)](https://github.com/emondpph "emondpph (146 commits)")

---

Tags

php frameworkquidquidphp

### Embed Badge

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

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

###  Alternatives

[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M193](/packages/catfan-medoo)

PHPackages © 2026

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