PHP code example of gomoob / php-embedded-mongo
1. Go to this page and download the library: Download gomoob/php-embedded-mongo 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/ */
gomoob / php-embedded-mongo example snippets
// Create and starts an embedded Mongo DB server
$mongoServer = new MongoServer();
$mongoServer->start();
...
// Execute your PHPUnit tests
...
// Stops ths embedded Mongo DB server
$mongoServer->stop();
composer install --save-dev php-embedded-mongo