wildsurfer / silex-provider-mongodm
Installs: 3 470
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- purekid/mongodm: *
- silex/silex: >=1.0
Requires (Dev)
- phpunit/phpunit: ~3.5
This package is not auto-updated.
Last update: 2024-12-17 02:48:56 UTC
README
Mongodm service provider for silex micro-framework. Check here: https://github.com/purekid/mongodm
Example
<?php use Silex\Application; $host = 'localhost:27017'; $db = 'database'; $options = array('w' => 1); $app = new Application(); $app->register(new MongodmServiceProvider(), array( "mongodm.host" => $host, "mongodm.db" => $db, "mongodm.options" => $options )); $m = $app['mongodm']; $m->findOne('MyCollection',array('name' => 'my name'));
Install with Composer
{ require: { "wildsurfer/silex-provider-mongodm": "dev-master" } }