Download the PHP package zazmaster/query-builder-parser-eloquent without Composer
On this page you can find all versions of the php package zazmaster/query-builder-parser-eloquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zazmaster/query-builder-parser-eloquent
More information about zazmaster/query-builder-parser-eloquent
Files in zazmaster/query-builder-parser-eloquent
Package query-builder-parser-eloquent
Short Description Build complex Eloquent & QueryBuilder queries automatically when using jQuery-QueryBuilder
License MIT
Homepage http://github.com/ZAZmaster/QueryBuilderParserEloquent
Informations about the package query-builder-parser-eloquent
QueryBuilderParser
Eloquent version of https://github.com/timgws/QueryBuilderParser with issue https://github.com/timgws/QueryBuilderParser/issues/18
Status Label | Status Value |
---|---|
Build | |
Insights | |
Code Climate | |
Test Coverage |
QueryBuilderParser is designed mainly to be used inside Laravel projects, however it can be used outside Laravel projects by using Illuminate/Database.
A simple to use query builder for the jQuery QueryBuilder plugin.
Using QueryBuilderParser
Building a new query from QueryBuilder rules.
This query when posted will create the following SQL query:
Getting results from MongoDB
This query when posted will create the following MongoDB query:
Note that to use this you will need to install and configure jenssegers/mongodb
.
Integration examples
Integrating with jQuery Datatables
Mixed with Datatables, jQuery QueryBuilder makes for some true awesome, allowing limitless options for filtering data, and seeing the results on the fly.
On the client side, a little bit of magic is required to make everything work.
Using JoinSupportingQueryBuilderParser
JoinSupportingQueryBuilderParser
is a version of QueryBuilderParser
that supports building even more complex queries.
Which will build an SQL query similar to:
For simple queries, QueryBuilderParser
should be enough.
Exporting CSV files
Just as a footnote, there are right ways to export CSV files, and there are wrong ways.
For the right way, check out the question on StackOverflow, How can I output a UTF-8 CSV in PHP that Excel will read properly?
Reporting Issues
I use this code in a number of my projects, so if you do find an issue, please feel free to report it with GitHub's bug tracker for this project.
Alternatively, fork the project and make a pull request :)