Download the PHP package matryoshka-model/mongo-wrapper without Composer

On this page you can find all versions of the php package matryoshka-model/mongo-wrapper. 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 mongo-wrapper

Matryoshka wrapper for MongoDB

Latest Stable Version Build Status Coveralls branch Total Downloads Matryoshka Model's Slack

Use MongoDB as data gateway for Matryoshka.

Community

For questions and support please visit the slack channel (get an invite here).

Installation

Install it using composer.

Add the following to your composer.json file:

Configuration

This library provides two abstract factories for Zend\ServiceManager to make MongoDb and MongoCollection available as services. In order to use them in a ZF2 application, register the provided factories through the service_manager configuration node:

Then in your configuration you can add the mongodb and mongocollection nodes and configure them as in example:

Usage

This wrapper provides extensions and default implementations for using MongoCollection as a datagateway.

Main concepts:

  1. Inject a Matryoshka\Model\Wrapper\Mongo\Criteria\ActiveRecordCriteria instance into your Matryoshka\Model\Object\AbstractActiveRecord objects

    This way the matryoshka Active Record implementation will work with your MongoDB collections

  2. Matryoshka\Model\Wrapper\Mongo\Paginator

    MongoPaginatorAdapter is a paginator adapter that can be used within paginable criterias

  3. Matryoshka\Model\Wrapper\Mongo\ResultSet

    HydratingResultSet makes the counting functionality working correctly with MongoCursor datasources

NOTES

It's important to always use the HydratingResultSet class included in this package because MongoCursor does not implement the Countable and MongoCursor::count() must be called passing true as parameter.

Components

Continuous integration

CI provided through TravisCI.

This wrapper is tested against the following MongoDB PHP clients: 1.4.5, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.3, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.6.10, 1.6.11, 1.6.12, 1.6.13.


Analytics


All versions of mongo-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
ext-mongo Version *
matryoshka-model/matryoshka Version ~0.8.0
zendframework/zend-stdlib Version 2.*
zendframework/zend-paginator Version 2.*
zendframework/zend-servicemanager Version 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 matryoshka-model/mongo-wrapper contains the following files

Loading the files please wait ....