PHPackages                             respect/relational - 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. respect/relational

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

respect/relational
==================

Fluent Database Toolkit

0.8.1(10y ago)23720.9k↓33.3%32[12 issues](https://github.com/Respect/Relational/issues)2BSD StylePHPPHP &gt;=5.4.0CI passing

Since Apr 11Pushed 1mo ago20 watchersCompare

[ Source](https://github.com/Respect/Relational)[ Packagist](https://packagist.org/packages/respect/relational)[ Docs](http://respect.li)[ RSS](/packages/respect-relational/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (17)Used By (2)

Respect\\Relational
===================

[](#respectrelational)

[![Latest Stable Version](https://camo.githubusercontent.com/6de6e57ed07b99e47a4bd54aeec7be86324506246c9a6db831738b2a32bf82f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726573706563742f72656c6174696f6e616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/relational)[![Total Downloads](https://camo.githubusercontent.com/416e1a28b8e69b5c920fd50a749e0ff7bc10b6eef9f6db824feb05c8b0786b82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726573706563742f72656c6174696f6e616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/relational)[![License](https://camo.githubusercontent.com/b7ac0674dbba2e506e7bf4e29054827ce3a7c5b9d4ad522f64f9855bdb298a94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726573706563742f72656c6174696f6e616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/relational)

A fluent, intuitive ORM for any relational database engine.

- Near-zero configuration.
- Fluent interfaces like `$mapper->author[7]->fetch();` (and [concrete ones if you want](https://gist.github.com/alganet/4957800)).
- Adapts itself to different database styles.
- Records are handled as Plain Data Object.
- No need to generate a thing, nada, nothing, zilch, bugger all!

This documentation is a work in progress! Kindly forward any issues you may find back to us =)

Table of contents
-----------------

[](#table-of-contents)

- [Contributing](CONTRIBUTING.md)
- [Db class](docs/DB-CLASS.md)
- [Feature Guide](docs/README.md)
- [Installation](docs/INSTALL.md)
- [License](LICENSE.md)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance58

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.1% 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 ~84 days

Recently: every ~48 days

Total

16

Last Release

3980d ago

PHP version history (2 changes)0.6.0PHP &gt;=5.3.0

0.7.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/202642?v=4)[Alexandre Gomes Gaigalas](/maintainers/alganet)[@alganet](https://github.com/alganet)

![](https://avatars.githubusercontent.com/u/154023?v=4)[Henrique Moody](/maintainers/henriquemoody)[@henriquemoody](https://github.com/henriquemoody)

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

![](https://www.gravatar.com/avatar/4343df4adee634d5953da73aa5b61e4af61dbd37bf4e97449240c8a32c142dc5?d=identicon)[augustohp](/maintainers/augustohp)

---

Top Contributors

[![alganet](https://avatars.githubusercontent.com/u/202642?v=4)](https://github.com/alganet "alganet (192 commits)")[![henriquemoody](https://avatars.githubusercontent.com/u/154023?v=4)](https://github.com/henriquemoody "henriquemoody (58 commits)")[![zeebinz](https://avatars.githubusercontent.com/u/341424?v=4)](https://github.com/zeebinz "zeebinz (15 commits)")[![nickl-](https://avatars.githubusercontent.com/u/1404606?v=4)](https://github.com/nickl- "nickl- (14 commits)")[![thiagophx](https://avatars.githubusercontent.com/u/226858?v=4)](https://github.com/thiagophx "thiagophx (3 commits)")[![wesleyvicthor](https://avatars.githubusercontent.com/u/605006?v=4)](https://github.com/wesleyvicthor "wesleyvicthor (3 commits)")[![danielcosta](https://avatars.githubusercontent.com/u/42549?v=4)](https://github.com/danielcosta "danielcosta (2 commits)")[![filhodanuvem](https://avatars.githubusercontent.com/u/94096?v=4)](https://github.com/filhodanuvem "filhodanuvem (2 commits)")[![rogeriopradoj](https://avatars.githubusercontent.com/u/443391?v=4)](https://github.com/rogeriopradoj "rogeriopradoj (2 commits)")[![kinncj](https://avatars.githubusercontent.com/u/292542?v=4)](https://github.com/kinncj "kinncj (1 commits)")[![eric-chau](https://avatars.githubusercontent.com/u/1244070?v=4)](https://github.com/eric-chau "eric-chau (1 commits)")[![williancarminato](https://avatars.githubusercontent.com/u/508311?v=4)](https://github.com/williancarminato "williancarminato (1 commits)")[![faabiosr](https://avatars.githubusercontent.com/u/522883?v=4)](https://github.com/faabiosr "faabiosr (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/respect-relational/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

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

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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