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 3d 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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

2634d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7711b3f7e0b0d6bcc742fc8e27e0d286e50f6d921cdbc24e09fb76a2cf0df4d5?d=identicon)[noitran](/maintainers/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.1k7.2M71](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k25.2M34](/packages/kirschbaum-development-eloquent-power-joins)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spiritix/lada-cache

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

591444.8k2](/packages/spiritix-lada-cache)[sebastiaanluca/laravel-boolean-dates

Automatically convert Eloquent model boolean attributes to dates (and back).

40111.7k1](/packages/sebastiaanluca-laravel-boolean-dates)

PHPackages © 2026

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