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

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

aliengen/pachyderm-orm
======================

A micro ORM for Pachyderm

01.5k↓80%2[1 PRs](https://github.com/AlienGen/pachyderm-orm/pulls)PHP

Since May 10Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/AlienGen/pachyderm-orm)[ Packagist](https://packagist.org/packages/aliengen/pachyderm-orm)[ RSS](/packages/aliengen-pachyderm-orm/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Pachyderm ORM
-------------

[](#pachyderm-orm)

A lightweight, expressive ORM for the Pachyderm micro‑framework.

- **Models**: map database tables to PHP classes
- **Fluent queries**: chainable builders for filters, joins, order, pagination
- **Collections**: iterable results with total count support
- **Inheritance**: optional parent model for shared fields

---

### Table of Contents

[](#table-of-contents)

- [Installation](#installation)
- [Quick start](#quick-start)
- [Querying](#querying)
    - [Nested groups with QueryBuilder (OR groups)](#nested-groups-with-querybuilder-or-groups)
- [Relations](#relations)
- [Relations via inheritance (optional)](#relations-via-inheritance-optional)
- [Scopes](#scopes)
- [Pagination helper](#pagination-helper)
- [Testing](#testing)
- [Troubleshooting](#troubleshooting)
- [Advanced: Custom DB engine (optional)](#advanced-custom-db-engine-optional)
- [License](#license)

---

### Installation

[](#installation)

```
composer require aliengen/pachyderm-orm
```

You're ready to use it in your Pachyderm project.

---

### Quick start

[](#quick-start)

#### 1) Declare a Model

[](#1-declare-a-model)

```
