smoren/query-relation-manager (packagist): Class for building queries and making result array with relations (single and multiple)
Keywords: orm|query|activerecord|builder|relation|php-library|sql|sqlquerybuilder|tree|tree-builder|tree-structure