2017 © Pedro Peláez
 

library silex-mongo-provider

Mongo service provider for the Silex framwork.

image

moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  • Sunday, March 9, 2014
  • by moriony
  • Repository
  • 1 Watchers
  • 12 Stars
  • 8,409 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

silex-mongo-provider

Build Status Coverage Status Dependency Status, (*1)

Mongo service provider for the Silex framwork., (*2)

Install via composer

Add in your composer.json the require entry for this library., (*3)

{
    "require": {
        "moriony/silex-mongo-provider": "*"
    }
}

and run composer install (or update) to download all files., (*4)

Usage

Service registration

$app->register(new MongoServiceProvider, array(
    'mongo.connections' => array(
        'default' => array(
            'server' => "mongodb://localhost:27017",
            'options' => array("connect" => true)
        )
    ),
));

Connections retrieving

$connections = $app['mongo'];
$defaultConnection = $connections['default']; 

Creating mongo connection via factory

$mongoFactory = $app['mongo.factory'];
$customConnection = $mongoFactory("mongodb://localhost:27017", array("connect" => true));

The Versions

09/03 2014

dev-master

9999999-dev https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo

09/03 2014

1.2.2

1.2.2.0 https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo

22/09 2013

1.2.1

1.2.1.0 https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo

26/08 2013

1.2

1.2.0.0 https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo

19/05 2013

1.1

1.1.0.0 https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo

06/01 2013

1.0

1.0.0.0 https://github.com/moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

mongodb database silex mongo