Download the PHP package payamjafari/mongocute without Composer

On this page you can find all versions of the php package payamjafari/mongocute. 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 mongocute

MongoCute - A QueryBuilder for MongoDB

By using this builder you can easily make your database queries without writing raw queries.

Installation

Usage

Just call method "query" in QueryBuilder class and you are ready.

Environment config

You can set your configuration in your project root folder by creating a file named ".env"

Filter query

For filtering your query you can use several methods such as where, whereNot, orWhere, ....

Filter Methods

Name Description
whereEqual( string $name, $value ) Matches values that are equal to a specified value.
whereNot( string $name, $value ) Matches all values that are not equal to a specified value.
whereIn( string $name, array $values ) Matches any of the values specified in an array.
whereNotIn( string $name, array $value ) Matches none of the values specified in an array.
whereGreaterThan( string $name, $value ) Matches values that are greater than a specified value.
whereGreaterThanOrEqual( string $name, $value ) Matches values that are greater than or equal to a specified value.
whereLessThan( string $name, $value ) Matches values that are less than a specified value.
whereLessThanOrEqual( string $name, $value ) Matches values that are less than or equal to a specified value.
whereExists( string $name, $value ) Matches documents that have the specified field.
whereType( string $name, $value ) Selects documents if a field is of the specified type.

Note: All of these can be used with prefix 'or' and also can be called statically from class.

Group Filter

You can set your filters as a group by just adding a closure to "where" method.

OrderBy

Select specific fields

Create/CreateMany

You can create a document by using "create" method or multiple by using "createMany" method.

Update

You can update documents by using "update" method.

Delete

You can delete documents by using "delete" method.

Select database at runtime

You can select your database at the query by calling "db" method.

Get first result

By calling method "first" at the last of your query, you can retrieve the first document taken.


All versions of mongocute with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
mongodb/mongodb Version ^1.5
vlucas/phpdotenv Version ^5.2
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 payamjafari/mongocute contains the following files

Loading the files please wait ....