Download the PHP package shershams/lmongo without Composer

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

LMongo Build Status

LMongo is MongoDB package for Laravel 4. Most part of LMongo is based on Illuminate/Database (Thanks to @taylorotwell)

Please note that LMongo project is under heavy development, some functionalities are not yet tested. Please report if you find any bug.

Installation

Add shershams/lmongo as a requirement to composer.json:

And then run composer update

Once Composer has installed or updated your packages you need to register LMongo. Open up app/config/app.php and find the providers key and add:

Then find the aliases key and add following line to the array:

Finally you need to publish a configuration file by running the following Artisan command.

This will copy the default configuration file to app/config/packages/shershams/lmongo/config.php

Basic Usage

You may get a MongoDB instance by calling the LMongo::connection method:

This will give you an instance of the default MongoDB server. You may pass the server name to the connection method to get a specific server as defined in your mongodb configuration:

LMongo uses magic method to pass the collection name to the Database class and return MongoCollection instance. Then you can use any of MongoCollection methods:

Get the MongoDB object:

Get the MongoClient object:

Select/switch the database:

Create the database:

Query Builder

Wheres

Retrieving All Rows From A Collection

Retrieving A Single Document From A Collection

Retrieving A Single Column From A Document

Specifying A Fields

Using Where Operators

Or Statements

Nor Statements

Using Where In And Where Not In With An Array

Using Where All With An Array

Using Where Exists

Using Where Gt

Using Where Gte

Using Where Lt

Using Where Lte

Using Where Between

Using Where Ne

Using Where Regex

Using Where Like

There are more where methods in Query/Builder.php file.

Order By

Offset & Limit

Advanced Wheres

Parameter Grouping

Aggregates

Distinct

Inserts

Inserting Document Into A Collection

Inserting Multiple Documents Into A Collection

Updates

Updating Documents In A Collection

Incrementing or decrementing a value of a column

Deletes

Deleting Documents In A Collection

Deleting All Documents From A Collection

Pagination

LMongo has pagination support like Laravel's Query Builder.

Eloquent for MongoDB

It's similar to Eloquent, except few differences:

See Eloquent Docs.

License

Licensed under the MIT License.

TODO


All versions of lmongo with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 shershams/lmongo contains the following files

Loading the files please wait ....