2017 © Pedro Peláez
 

library saxulum-doctrine-mongodb-provider

Saxulum Doctrine MongoDB Provider

image

saxulum/saxulum-doctrine-mongodb-provider

Saxulum Doctrine MongoDB Provider

  • Friday, August 5, 2016
  • by dominikzogg
  • Repository
  • 1 Watchers
  • 6 Stars
  • 72,089 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 10 Versions
  • 8 % Grown

The README.md

saxulum-doctrine-mongodb-provider

works with plain silex-php, (*1)

Build Status Total Downloads Latest Stable Version, (*2)

Features

  • Support for mongodb within Silex or Cilex, it does NOT PROVIDE the ODM integration

Requirements

  • PHP 5.6+
  • Doctrine Mongodb 1.0 Beta+

Installation

Through Composer as saxulum/saxulum-doctrine-mongodb-provider., (*3)

Example for one connection:, (*4)

``` {.php} $app->register(new DoctrineMongoDbProvider(), array( 'mongodb.options' => array( 'server' => 'mongodb://localhost:27017', 'options' => array( 'username' => 'root', 'password' => 'root', 'db' => 'admin' ) ) ));, (*5)


Example for one connection with custom ca file: ``` {.php} $app->register(new DoctrineMongoDbProvider(), array( 'mongodb.options' => array( 'server' => 'mongodb://localhost:27017', 'options' => array( 'username' => 'root', 'password' => 'root', 'db' => 'admin' ), 'driverOptions => array( 'ca_file' => '/some/ca.pem' ) ) ));

Example for multiple connections:, (*6)

``` {.php} $app->register(new DoctrineMongoDbProvider(), array( 'mongodbs.options' => array( 'mongo1' => array( 'server' => 'mongodb://localhost:27017', 'options' => array( 'username' => 'root', 'password' => 'root', 'db' => 'admin' ) ), 'mongo2' => array( 'server' => 'mongodb://localhost:27018', 'options' => array( 'username' => 'root', 'password' => 'root', 'db' => 'admin' ) ) ) ));, (*7)


Usage ----- Example for one connection: ``` {.php} $document = array('key' => 'value'); $app['mongodb'] ->selectDatabase('saxulum-doctrine-mongodb-provider') ->selectCollection('sample') ->insert($document) ;

Example for multiple connections:, (*8)

``` {.php} $document = array('key' => 'value');, (*9)

$app['mongodbs']['mongo1'] ->selectDatabase('saxulum-doctrine-mongodb-provider') ->selectCollection('sample') ->insert($document) ; ```, (*10)

The Versions

05/08 2016

dev-master

9999999-dev

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

05/08 2016

2.0.1

2.0.1.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

05/08 2016

v1.x-dev

1.9999999.9999999.9999999-dev

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

05/08 2016

1.0.5

1.0.5.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

04/10 2014

2.0.0

2.0.0.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

19/12 2013

1.0.4

1.0.4.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

19/12 2013

1.0.3

1.0.3.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

19/12 2013

1.0.2

1.0.2.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

18/12 2013

1.0.1

1.0.1.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum

18/12 2013

1.0.0

1.0.0.0

Saxulum Doctrine MongoDB Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

mongodb silex doctrine mongo pimple cilex saxulum