2017 © Pedro Peláez
 

library silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver

image

lalbert/silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver

  • Friday, May 27, 2016
  • by lalbert
  • Repository
  • 1 Watchers
  • 5 Stars
  • 1,315 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver, (*1)

Features

This library provides easy access to a MongoDB database using the extension (mongodb, not mongo) and the official MongoDB PHP driver., (*2)

Requirements

Installation

The best way to install the component is using Composer, (*3)

$ composer require lalbert/silex-mongodb

Usage

Register service

``` {.php} $app->register(new MongoDBServiceProvider());, (*4)


You can also pass configuration settings : _See http://php.net/manual/en/mongodb-driver-manager.construct.php for options allowed._ ``` {.php} $app->register(new MongoDBServiceProvider(), [ 'mongodb.config' => [ 'server' => 'mongodb://localhost:27017', 'options' => [], 'driverOptions' => [], ] ]);

Your application :, (*5)

``` {.php} $document = ['key' => 'value'];, (*6)

$app['mongodb'] ->mydatabase ->mycollection ->insert($document) ; ```, (*7)

See official MongoDB PHP Library documentation, (*8)

The Versions

27/05 2016

dev-master

9999999-dev https://github.com/lalbert/silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver

  Sources   Download

MIT

The Requires

 

The Development Requires

mongodb silex provider

27/05 2016

dev-develop

dev-develop https://github.com/lalbert/silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver

  Sources   Download

MIT

The Requires

 

The Development Requires

mongodb silex provider

27/05 2016

v1.0.0

1.0.0.0 https://github.com/lalbert/silex-mongodb

Simple mongodb service provider for Silex 2.x and official mongodb driver

  Sources   Download

MIT

The Requires

 

The Development Requires

mongodb silex provider