Download the PHP package julien-c/mongovel without Composer

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

Mongovel Build Status

A Laravel-ish wrapper to the PHP Mongo driver

Most MongoDB packages for Laravel insist on abstracting away the PHP driver and implementing a SQL-like, full-fledged query builder. We think the PHP driver for Mongo is great by itself and Mongo's expressiveness out-of-the-box is actually what makes it awesome.

In that spirit, Mongovel is a thin wrapper over the PHP driver that makes it more Eloquent-like:

Usage overview

Enough talking, here's how to use Mongovel:

GET books/512ce86b98dee4a87a000000:

Mongovel detects that $id is a MongoId, and returns an object that will be automatically serialized and sent as JSON by Laravel.

POST books:

What if we want to update some field on our book? Let's say we're posting a review:

POST books/512ce86b98dee4a87a000000/reviews:

Deleting a book is as simple as:

Finally, Mongovel wraps MongoCursor results into Laravel Collections, so you can just do: GET books:

Bulk operations

In order to make bulk operations less painful, Mongovel implements the standard bulk interface:

How to install

Add julien-c/mongovel as a requirement to composer.json, then run composer update.

Add Mongovel's service provider to your Laravel application in app/config/app.php. In the providers array add :

Add then alias Mongovel's model class by adding its facade to the aliases array in the same file :

Finally, add a MongoDB hash at the end of your app/config/database.php (so, outside of connections):

If needed (for MongoHq and the likes), you can specify a username and password in this array as well.

Any other options will be added as GET parameters to the DSN.

Authentification

To use Mongovel as your Auth provided, you'll simply need to go in the app/config/auth.php file and set mongo as your driver.

License

Licensed under the MIT License.

Other MongoDB wrappers in PHP

Before writing our own, here are the wrappers we've checked out (and sometimes contributed to):


All versions of mongovel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/container Version ~4
illuminate/support Version ~4
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 julien-c/mongovel contains the following files

Loading the files please wait ....