Skip to content

lucafabbri/raql-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAQL.PHP

Installation

you can install the library using composer

composer require higrow/raql-php

Usage

Laravel/Eloquent

Create a model that uses RAQLTrait

use RAQL\PHP\Eloquent\RAQLTrait;

class MyModel extends Model
{
  use RAQLTrait;
  ...
}

Call the .raql($query) Query Builder extension method

class Controller extends BaseController
{
  function queryMyModel()
  {
    $query = "(field1 like 'name' or field1 = 'mario') and field2 >=10";
    return MyModel::raql($query)->get();
  }
}

About

RAQL library for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published