Download the PHP package kalimulhaq/json-query without Composer

On this page you can find all versions of the php package kalimulhaq/json-query. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package json-query

A JSON query language for your Laravel/Lumen API

Latest Version on Packagist Total Downloads

JsonQuery is a query language for your Laravel/Lumen API, which convert JSON query to Laravel Eloquent ORM query.

Installation

You can install the package via composer:

Usage

Filter

filter is a valid JSON string of the following form

Example

Select

select is an array of columns to select from the base model, If removed * will be used

Where

where is a valid json object used to construct the WHERE clause

and

to combine the where clause with AND

or

to combine the where clause with OR

Both and and or are arrays of objects, each object is representing one where clause

If operator removed = will be used as a default operator

The (optional) outside field, value, operator, sub_operator make a singal where clause which will be combined with AND with the and and or groups.

field

column name or relationship name, if operator is has, not_has, where_has, or where_not_has the field will be consider is a relationship

value

any type of value to search. if operator is has, not_has, where_has, or where_not_has the value will be an object of where type

operator

supported operators are =, !=, <, >, <=, >=, between, not_between, in, not_in, null, not_null, date, day, moth, year, time, like, has, not_has, where_has, and where_not_has

sub_operator

sub operator is only required if operator is has or not_has, and supported sub operators are =, !=, <, >, <=, >=

Order

Order is used to order the rows. order is An array of objects

Include

In order to includes related models. include is an array of objects with same structure of the root filter (see above) object with extra property relation.

Include Count

In order to includes related models count. include_count is an array of objects.

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

License

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


All versions of json-query with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
illuminate/support Version ^7.0|^8.0
netresearch/jsonmapper Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kalimulhaq/json-query contains the following files

Loading the files please wait ....