Skip to content

Class for making queries for getting data from database with join-relations and filters

License

Notifications You must be signed in to change notification settings

Smoren/query-relation-manager-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

query-relation-manager

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