PHP code example of myurasov / silex-mongodb-provider
1. Go to this page and download the library: Download myurasov/silex-mongodb-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
myurasov / silex-mongodb-provider example snippets
$app['mongodb.mongo_client_options'] = [
'server' => <connection string>,
'options' => <connection options>,
'driver_options' => <driver options>
];
$app['mongodb.db'] = <db name>;