PHPackages                             noitran/rql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. noitran/rql

ActiveLibrary[Database &amp; ORM](/categories/database)

noitran/rql
===========

RQL - Resource Query Language package for laravel / lumen projects

0.2.0(7y ago)214MITPHPPHP &gt;=7.2

Since Feb 26Pushed 6y agoCompare

[ Source](https://github.com/noitran/rql)[ Packagist](https://packagist.org/packages/noitran/rql)[ RSS](/packages/noitran-rql/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

RQL - Resource Query Language Package
=====================================

[](#rql---resource-query-language-package)

[![Coverage Status](https://camo.githubusercontent.com/8cecd3d0cbce8bd74c0bc8e963a2cd1eff0359bd1a960911fa0da4c2519f5bd0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6f697472616e2f72716c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/noitran/rql/code-structure)[![Quality Score](https://camo.githubusercontent.com/b4e0413dfd3d804f9b7897f077fac2633fe62c6555fd2a358d5a109f9cb7cc8e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6f697472616e2f72716c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/noitran/rql)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/f32189823c22fe7552169bc169a02037a7a1181f58af511f34b62512bbbd00f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e6f697472616e2f72716c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/noitran/rql/releases)[![Total Downloads](https://camo.githubusercontent.com/da15c4b0479be436f5c83d13068fea03c882fdca1501d2d858538d2cbc84c783/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f697472616e2f72716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/noitran/rql)

About
-----

[](#about)

Package allows to use Resource Query Language (RQL) with Laravel's Eloquent ORM. Providers a simple and light-weight API for adding dynamic querying capabilities to HTTP based applications. Package functions as connector between HTTP requests and ORM. Currently only Eloquent Processor is included, but pacakge capabilities can be easly extended by adding new Processor.

Install
-------

[](#install)

- Install as composer package

```
$ composer require noitran/rql
```

Usage
-----

[](#usage)

```
use Noitran\RQL\Tests\Stubs\Models\User;
use Noitran\RQL\ExprQueue;
use Noitran\RQL\Processors\EloquentProcessor;

// Getting builder instance of model, or builder
// instance from noitran/repositories also can be passed.
$builder = User::query();

$queue = new ExprQueue();

// Creating expression
$exprClasses = $this->queue->enqueue(
	new \Noitran\RQL\Expressions\EqExpr(null, 'name', 'John')
);

// Attaching expression into builder
$query = (new EloquentProcessor($this->builder))->process($exprClasses);

// Thats it! Expression has been applied. Can be checked by dumping query.
// Example:
dd($query->toSql());

// Dumps attached expression to sql:
// select * from "users" where "name" = ?

```

All samples can be viewed in testfile: `Noitran\RQL\Tests\Processors\EloquentProcessorTest`

Todo
----

[](#todo)

- Add request / input parsers.
- Improve relation / column bindings.
- Improve docs and add more samples.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2681d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46364989?v=4)[noitran](/maintainers/noitran)[@noitran](https://github.com/noitran)

---

Top Contributors

[![noitran](https://avatars.githubusercontent.com/u/46364989?v=4)](https://github.com/noitran "noitran (18 commits)")

---

Tags

apilaravellumenmysqlmodeleloquentmongodbMicroservicerqlresource-query-language

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/noitran-rql/health.svg)

```
[![Health](https://phpackages.com/badges/noitran-rql/health.svg)](https://phpackages.com/packages/noitran-rql)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M90](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592452.8k2](/packages/spiritix-lada-cache)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2111.2M16](/packages/reedware-laravel-relation-joins)[ghostcompiler/laravel-querybuilder

Reusable query builder helpers for Eloquent APIs on Laravel 10 through 13.

172.3k](/packages/ghostcompiler-laravel-querybuilder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
