Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smoren/query-relation-manager-php
Class for making queries for getting data from database with join-relations and filters
https://github.com/smoren/query-relation-manager-php
orm php-library sql sqlquerybuilder tree tree-builder tree-structure
Last synced: about 1 month ago
JSON representation
Class for making queries for getting data from database with join-relations and filters
- Host: GitHub
- URL: https://github.com/smoren/query-relation-manager-php
- Owner: Smoren
- License: mit
- Created: 2020-08-28T12:39:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-02T13:12:07.000Z (over 2 years ago)
- Last Synced: 2024-10-30T21:25:55.745Z (2 months ago)
- Topics: orm, php-library, sql, sqlquerybuilder, tree, tree-builder, tree-structure
- Language: PHP
- Homepage:
- Size: 42 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# query-relation-manager
![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/smoren/query-relation-manager)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Smoren/query-relation-manager-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Smoren/query-relation-manager-php/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/Smoren/query-relation-manager-php/badge.svg?branch=master)](https://coveralls.io/github/Smoren/query-relation-manager-php?branch=master)
![Build and test](https://github.com/Smoren/query-relation-manager-php/actions/workflows/test_master.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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**](https://github.com/Smoren/yii2-query-relation-manager).
### How to install to your project
```
composer require smoren/query-relation-manager
```