PHPackages                             cekurte/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. cekurte/rql

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

cekurte/rql
===========

A Resource Query Language to PHP

v0.0.5(10y ago)784.7k↓37.5%2[2 PRs](https://github.com/jpcercal/resource-query-language/pulls)1MITPHPPHP &gt;=5.5

Since Jan 8Pushed 9y agoCompare

[ Source](https://github.com/jpcercal/resource-query-language)[ Packagist](https://packagist.org/packages/cekurte/rql)[ RSS](/packages/cekurte-rql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (8)Used By (1)

RQL (Resource Query Language)
=============================

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

[![Build Status](https://camo.githubusercontent.com/a7c6ec55bba996e870c64e3717e593102e49f177ec03a0f41f8df0e6aedfa713/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a7063657263616c2f7265736f757263652d71756572792d6c616e67756167652f6d61737465722e7376673f7374796c653d737175617265)](http://travis-ci.org/jpcercal/resource-query-language)[![Code Climate](https://camo.githubusercontent.com/89b8112313be8bdb54f09c03a1e90c7b29fd8a1daf7da7a469c68b0abf4f727e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a7063657263616c2f7265736f757263652d71756572792d6c616e67756167652f6261646765732f6770612e737667)](https://codeclimate.com/github/jpcercal/resource-query-language)[![Coverage Status](https://camo.githubusercontent.com/91cbc9dd7095428f52c5c486f42b4af02a2b54dddd39394c6aa0284e9f756f69/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a7063657263616c2f7265736f757263652d71756572792d6c616e67756167652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/jpcercal/resource-query-language?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b2dcf456c30867fd23a7e4e0fb1b2696996293a94fd068c2a4ce6366bf04b58f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656b757274652f72716c2e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/rql)[![License](https://camo.githubusercontent.com/7506b053858df7983b16cf39d2759b52aa935c217a7c3b43bd254832a39a00d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63656b757274652f72716c2e7376673f7374796c653d737175617265)](https://packagist.org/packages/cekurte/rql)[![SensioLabsInsight](https://camo.githubusercontent.com/23cbd57ff04031ed84ddcbd95cc2556306e7332adefc88a41427ddab5fdd6bee/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64343935306334662d626663332d343738322d386131392d3338613031373662356230642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d4950c4f-bfc3-4782-8a19-38a0176b5b0d)

- A Resource Query Language to PHP (with all methods covered by php unit tests), with this library you can perform queries using a unique input interface that will be converted and processed using the ProcessorInterface **contribute with this project**!

Installation
------------

[](#installation)

- The package is available on [Packagist](http://packagist.org/packages/cekurte/rql).
- The source files is [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) compatible.
- Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compatible.
- Input parser data is [PSR-7](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md) compatible.

```
composer require cekurte/rql
```

**If you liked of this library, give me a *star =)*.**

Documentation
-------------

[](#documentation)

This library was created to perform queries using a unique interface that will be converted and processed to the correct target. The target data can be an array, a database, a file (such as an ini, a xml or a json), a webservice, and more. Currently this project works only with the Doctrine ORM, then, you can perform queries in all databases that are compatible with the doctrine ORM project.

**We would be happy with their contribution, submit your pull request for new Processors like the Eloquent ORM, File Parser (INI, XML, JSON), API's (Facebook, LinkedIn,...) and more.**

### Expressions

[](#expressions)

Well, now we show how to use this library, to perform the query using the equality expression (more expressions will be show too).

```
