2017 © Pedro Peláez
 

library silex2-mongodb-provider

MongoDB service provider for the Silex 2 framework.

image

xatoo/silex2-mongodb-provider

MongoDB service provider for the Silex 2 framework.

  • Friday, June 17, 2016
  • by Sander-Toonen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Silex 2 MongoDb Provider

Build Status Coverage Status Dependency Status StyleCI SensioLabsInsight Latest Stable Version Total Downloads License, (*1)

MongoDB service provider for the Silex 2 framework. Tested with PHP7 and the MongoDB library., (*2)

Requirements

Installation

Add the required entry for this library to your composer.json., (*3)

{
    "require": {
        "xatoo/silex2-mongodb-provider": "*"
    }
}

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

Usage

Service registration

``` {.php} $app->register(new MongoDBServiceProvider, [ 'mongodb.configuration' => [ 'default' => [ 'server' => "mongodb://localhost:27017", 'options' => ["connect" => true] ] ], ]);, (*5)


### Connections retrieving ``` {.php} $connections = $app['mongodb']; $defaultConnection = $connections['default'];

Creating a mongo connection via the factory

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

The Versions

17/06 2016

dev-master

9999999-dev https://github.com/Sander-Toonen/silex-mongodb-provider

MongoDB service provider for the Silex 2 framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sander Toonen

mongodb database silex mongo provider

17/06 2016

0.0.1

0.0.1.0 https://github.com/Sander-Toonen/silex-mongodb-provider

MongoDB service provider for the Silex 2 framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sander Toonen

mongodb database silex mongo provider