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

This package is auto-updated.

Last update: 2024-11-30 02:24:09 UTC


README

Packagist PHP Version Support Scrutinizer Code Quality Coverage Status Build and test License: MIT

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