oryx / orm
There is no license information available for the latest version (v1.1) of this package.
DQL-centric ORM for PHP 8.0+ with Symfony-inspired scout querying & oryx/mvc-adr integration
v1.1
2026-03-30 14:36 UTC
Requires
- php: ^8.0
- doctrine/annotations: ^2.0
- doctrine/dbal: ^3.0
- doctrine/instantiator: ^1.5
- doctrine/orm: ^2.14
- league/climate: ^3.10
- league/config: ^1.2
- league/event: ^2.2
- league/factory-muffin: ^3.3
- league/flysystem: ^3.0
- league/fractal: ^0.19
- league/pipeline: ^1.0
- league/tactician: ^2.0
- league/uri: ^6.0
- nette/utils: ^4.0
- symfony/console: ^6.0
- symfony/dotenv: ^5.4
- symfony/event-dispatcher: ^6.0
- symfony/filesystem: ^6.0
- symfony/finder: ^6.0
- symfony/options-resolver: ^6.0
- symfony/process: ^6.0
- symfony/stopwatch: ^6.0
- symfony/string: ^6.0
- webmozart/assert: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2026-03-30 19:56:40 UTC
README
DQL-centric ORM for PHP 8.0+ with seamless integration to oryx/mvc and oryx/adr architectures.
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 & PHPStan
Requirements
- PHP ^8.0
- Extensions: mbstring, intl, pdo_sqlite (for testing)
Installation
composer require oryx/orm
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
# 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
MIT