Download the PHP package district5/mondoc-builder without Composer
On this page you can find all versions of the php package district5/mondoc-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mondoc-builder
Mondoc Builder, by District5
A MongoDB query building library.
Installation...
Testing and fixing...
-
Install dependencies:
- Run PHPUnit
Building a query...
The core function of this library is to build queries that can be used in Mongo.
Getting an instance of QueryBuilder
Assigning options to the QueryBuilder (skip / limit / sort and custom options)
A query builder contains parts...
There are multiple Part types. These are listed below:
AndOperator-$and- Add builders to this object create an$andquery.OrOperator-$or- Add builders to this object to create an$orquery.KeyExists-$exists- A field exists or does not exist.ValueEqualTo-$eq- A field is equal to a value.ValueGreaterThan-$gt- A field value is>than a provided value.ValueGreaterThanOrEqualTo-$gte- A field value is>=a given value.ValueInValues-$in- A field value is in a list of values.ValueNotInValues-$nin- A field value is in a list of values.ValueLessThan-$lt- A field value is<than a provided value.ValueLessThanOrEqualTo-$lte- A field value is<=than a provided value.ValueNotEqualTo-$ne- A field value is!=a provided value.GeospatialPointNear-$near- A geospatial search.GeospatialPointNearSphere-$nearSphere- A geospatial search.HasAllValues-$all- A field value has all in list.SizeOfValue-$size- The size of a value equals this.
$and queries with the AndOperator
$or queries with the OrOperator
Simple equals example...
More in depth example...
All versions of mondoc-builder with dependencies
PHP Build Version
Package Version
The package district5/mondoc-builder contains the following files
Loading the files please wait ...