mparaiso / doctrineodmserviceprovider
Doctrine ODM service provider for Silex
0.0.16
2013-09-19 23:25 UTC
Requires
- php: >=5.3.3
- doctrine/mongodb-odm: *@dev
- doctrine/mongodb-odm-bundle: 3.*@dev
Requires (Dev)
- mparaiso/consoleserviceprovider: *@dev
- silex/silex: 1.*
README
Doctrine ODM service provider for silex
Brings NoSQL databases to Silex Framework.
author : M.Paraiso contact: mparaiso@online.fr
status: work in progress
helps use Doctrine ODM with silex , comes with complete too symfony integration.
supports MongoDB
BASIC USAGE
$app = new \Silex\Application();
$app->register(new DoctrineODMMongoDBServiceProvider, array(
"odm.connection.server" => getenv('ODM_MONGODB_TEST_CONNECTION_STRING'), // mongodb connection string
"odm.connection.dbname" => getenv('ODM_MONGODB_TEST_DATABASE_NAME'), // dbname
"odm.connection.options" => array('connect' => TRUE), // connection options
"odm.proxy_dir" => __DIR__ . "/Proxy", // Proxy dir
"odm.driver.configs" => array(
"default" => array(
"namespace" => "Entity", // Entity Namespace
"path" => __DIR__ . "/Entity", // Entity Directory
"type" => "annotations" // Metadata driver ( 'yaml','xml' or 'annotations' )
)
)
));