smoren / query-relation-manager
Class for building queries and making result array with relations (single and multiple)
v3.0.0
2022-09-01 19:45 UTC
Requires
- php: >=7.4
- ext-pdo: *
Requires (Dev)
- codeception/codeception: ^4.2.1
- codeception/module-asserts: ^2.0
- php-coveralls/php-coveralls: ^2.0
- phpstan/phpstan: ^1.8
- squizlabs/php_codesniffer: 3.*
README
Implements the functionality of getting tree data from a database with one-to-one and one-to-many relationships using only one select-query to the database with flexible conditions configuration.
QueryRelationManager can be integrated with any ORM system based on PHP and potentially compatible with any relational DBMS.
Current package includes an example of integration with raw PDO without ORM.
Also there is an implementation for ActiveRecord as extension for Yii2.
How to install to your project
composer require smoren/query-relation-manager