All Projects → railken → Lara Eye

railken / Lara Eye

Licence: mit
Filter your Query\Builder using a structured query language

Projects that are alternatives of or similar to Lara Eye

Laravel Api Handler
Package providing helper functions for a Laravel REST-API
Stars: ✭ 150 (+284.62%)
Mutual labels:  api, search, query, laravel, filter
Searchable
Search/filter functionality for Laravel's Eloquent models
Stars: ✭ 113 (+189.74%)
Mutual labels:  search, eloquent, laravel, filter
Eloquentfilter
An Eloquent Way To Filter Laravel Models And Their Relationships
Stars: ✭ 1,113 (+2753.85%)
Mutual labels:  eloquent, query, laravel, filter
Queryql
Easily add filtering, sorting, and pagination to your Node.js REST API through your old friend: the query string!
Stars: ✭ 76 (+94.87%)
Mutual labels:  api, query, filter
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+510.26%)
Mutual labels:  eloquent, laravel, composer
Laravel Lucene Search
Laravel 4.2, 5.* package for full-text search over Eloquent models based on ZF2 Lucene.
Stars: ✭ 75 (+92.31%)
Mutual labels:  search, eloquent, laravel
Laravel Graphql
GraphQL implementation with power of Laravel
Stars: ✭ 56 (+43.59%)
Mutual labels:  eloquent, query, laravel
Laravel Prefixed Ids
Friendly prefixed IDs for Laravel models
Stars: ✭ 88 (+125.64%)
Mutual labels:  api, eloquent, laravel
Requent
A GraphQL like interface to map a request to eloquent query with data transformation for Laravel.
Stars: ✭ 78 (+100%)
Mutual labels:  api, eloquent, laravel
Eloquent Filter
This simple package helps you filter Eloquent data using query filters.
Stars: ✭ 24 (-38.46%)
Mutual labels:  eloquent, laravel, filter
eloquent-mongodb-repository
Eloquent MongoDB Repository Implementation
Stars: ✭ 18 (-53.85%)
Mutual labels:  composer, eloquent, filter
Sieve
A simple, clean and elegant way to filter Eloquent models.
Stars: ✭ 123 (+215.38%)
Mutual labels:  eloquent, laravel, filter
Laravel Cacheable
Rinvex Cacheable is a granular, intuitive, and fluent caching system for eloquent models. Simple, but yet powerful, plug-n-play with no hassle.
Stars: ✭ 107 (+174.36%)
Mutual labels:  eloquent, query, laravel
Deeply
PHP client for the DeepL.com translation API (unofficial)
Stars: ✭ 152 (+289.74%)
Mutual labels:  api, laravel, library
Laravel Translator
An Eloquent translator for Laravel
Stars: ✭ 275 (+605.13%)
Mutual labels:  eloquent, laravel, composer
Async Gamequery Lib
A high-performance java game query library designed for steam/source based games and others
Stars: ✭ 88 (+125.64%)
Mutual labels:  api, query, library
Datagrid
Datagrid for Laravel v5
Stars: ✭ 44 (+12.82%)
Mutual labels:  laravel, composer, filter
Laravel Paket
Composer GUI. Manage Laravel dependencies from web interface without switching to command line!
Stars: ✭ 143 (+266.67%)
Mutual labels:  laravel, library, composer
Performance
⏱ PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.
Stars: ✭ 429 (+1000%)
Mutual labels:  query, laravel, composer
Laravel Wallet
Easy work with virtual wallet
Stars: ✭ 401 (+928.21%)
Mutual labels:  eloquent, laravel, composer

Laravel Eye

Actions Status

Filter your Illuminate\DataBase\Query\Builder using a structured query language. This can be pretty usefull when you're building an API and you don't want to waste hours of your time creating predefined filters that may change at any time.

Requirements

PHP 7.1 or later.

Usage

use Railken\LaraEye\Filter;
use Railken\SQ\Exceptions\QuerySyntaxException;
use App\Foo;


// Instance of Illuminate\DataBase\Query\Builder
$query = (new Foo())->newQuery()->getQuery();

$str_filter = "x > 5 or y < z";

$filter = new Filter("foo", ['id', 'x', 'y', 'z', 'created_at', 'updated_at']);

try {
    $filter->build($query, $str_filter);
} catch (QuerySyntaxException $e) {
    // handle syntax error
}


Syntax here

Composer

You can install it via Composer by typing the following command:

composer require railken/lara-eye

Demo

demo

License

Open-source software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].