Just a simple example bundle using MongoDB Object Document Mapper (ODM) and the following Bundles:
composer.json
php composer.phar require hgtan/mongo-odm-bundle:dev-master
Then register the bundle with your kernel:
<?php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new Hgtan\Bundle\HelloDoctrineMongoDBBundle\HgtanHelloDoctrineMongoDBBundle(),
// ...
);
# app/config/config.yml
$ php app/console hgtan:user:create
Please choose a username: ahoang
Please choose an email: hoang@example.com
Please choose a password:
Created user ahoang