Download the PHP package phly/phly-mongo without Composer

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

PhlyMongo - ZF2 Module for Mongo Integration

Build Status

PhlyMongo provides the following to assist with Mongo usage in ZF2:

Installation

Simplest is to add the following to composer.json:

And then run:

Alternately, use git to install this as a submodule:

Usage

Services

In order to remain as flexible as possible, the service factories require that you pass information to the constructors. As such, you should typically configure and setup the factories via your Module.php definition:

If you want the server, server options, database, collection, or any service names to be dynamic, consider wrapping the factories in closures, and passing in configuration:

However, if you need to do this, you might just as easily use the native Mongo classes.

Hydrating Cursor

The hydrating cursor is useful as a way to map result sets to objects.

Pass a MongoCursor instance to the constructor, along with a hydrator and a prototype object, and you're set:

Paginator Adapter

The paginator adapter allows you to use a MongoCursor with Zend\Paginator.

Pass a MongoCursor to the constructor, and then pass the adapter to the paginator instance.

Hydrating Paginator Adapter

This builds on the paginator adapter, and simply alters it to accept specifically a PhlyMongo\HydratingMongoCursor in the constructor, allowing you to return objects of a specific type during iteration.


All versions of phly-mongo with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-mongo Version *
zendframework/zend-i18n Version ~2.0
zendframework/zend-paginator Version ~2.0
zendframework/zend-servicemanager Version ~2.0
zendframework/zend-stdlib Version ~2.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 phly/phly-mongo contains the following files

Loading the files please wait ....