2017 © Pedro Peláez
 

library laravel-query-helper

Laravel Query Helper

image

alive2212/laravel-query-helper

Laravel Query Helper

  • Monday, May 28, 2018
  • by Alive2212
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LaravelQueryHelper

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Note: Replace Babak Nodoust https://github.com/Alive2212 http://babakn.com alive2212@yahoo.com Alive2212 LaravelQueryHelper Laravel Query Helper with their correct values in README.md, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md and composer.json files, then delete this line. You can run $ php prefill.php in the command line to make all replacements at once. Delete the file prefill.php as well., (*2)

This Package is smart deep where condition helper. you can deep where condition with many relation with just "." between your model and get your results., (*3)

Structure

bin/        
config/
src/
tests/
vendor/

Install

Via Composer, (*4)

``` bash $ composer require alive2212/laravel-query-helper, (*5)


## Usage for using just send array filter like following ``` php protected $filters = [ // or where condition every thing here [ // and where condition every thing here ['id', '=', 1], ['title', '=', 'test'], ['folan.id', '=', 2], ['folan.bahman.id', '=', 3], ['folan.title', '=', 'test'], ['folan.bahman.amount', '>', 1000], ], [ ['id', '=', 4], ['folan.id', '=', 5], ['folan.title', '=', 'test123'], ['folan.bahman.id', '=', 1], ['folan.bahman.title', '=', 'test2'], ], [ ['id', '=', 7], ['folan.id', '=', 8], ['folan.title', '=', 'test1234'], ['folan.bahman.id', '=', 9], ['folan.bahman.title', '=', 'test21'], ] ];

Change log

Please see CHANGELOG for more information on what has changed recently., (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*8)

Security

If you discover any security related issues, please email alive2212@yahoo.com instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

28/05 2018