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

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

oryx/orm
========

DQL-centric ORM for PHP 8.0+ with Symfony-inspired scout querying &amp; oryx/mvc-adr integration

v1.1(3mo ago)00PHPPHP ^8.0CI passing

Since Mar 30Pushed 3mo agoCompare

[ Source](https://github.com/pbrilius/orm)[ Packagist](https://packagist.org/packages/oryx/orm)[ RSS](/packages/oryx-orm/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)Dependencies (28)Versions (4)Used By (0)

oryx/orm
========

[](#oryxorm)

DQL-centric ORM for PHP 8.0+ with seamless integration to oryx/mvc and oryx/adr architectures.

Features
--------

[](#features)

- Doctrine DBAL/ORM abstraction with enhanced DQL capabilities
- PSR-4 autoloading compliant
- League package integration (Config, Event, Pipeline, Tactician, etc.)
- Symfony Dotenv for environment configuration
- Full PSR-12 code style compliance
- Comprehensive test suite with PHPUnit, Mockery &amp; PHPStan

Requirements
------------

[](#requirements)

- PHP ^8.0
- Extensions: mbstring, intl, pdo\_sqlite (for testing)

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

[](#installation)

```
composer require oryx/orm
```

Basic Usage
-----------

[](#basic-usage)

```
use Oryx\ORM\EntityManager;
use Doctrine\DBAL\DriverManager;

// Configure connection
$connectionParams = [
    'dbname' => 'mydb',
    'user' => 'dbuser',
    'password' => 'dbpass',
    'host' => 'localhost',
    'driver' => 'pdo_mysql',
];

$conn = DriverManager::getConnection($connectionParams);
$entityManager = new EntityManager($conn);

// Create query builder
$queryBuilder = $entityManager->createQueryBuilder()
    ->select('u')
    ->from('User::class', 'u')
    ->where('u.status = :status')
    ->setParameter('status', 'active');

$users = $queryBuilder->getQuery()->getResult();
```

Development
-----------

[](#development)

```
# Install dependencies
composer install

# Check code style
composer cs-check

# Fix code style
composer cs-fix

# Run static analysis
composer stan

# Run tests
composer test
```

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

2

Last Release

92d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cee8274bb15a13bb51a04700b2875beeb635bc2d2889defa2e1493627c85a02c?d=identicon)[committee-lan-hackeris](/maintainers/committee-lan-hackeris)

---

Top Contributors

[![pbrilius](https://avatars.githubusercontent.com/u/8288767?v=4)](https://github.com/pbrilius "pbrilius (18 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k58](/packages/open-dxp-opendxp)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M717](/packages/sylius-sylius)

PHPackages © 2026

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