PHP code example of php-arsenal / symfony-mongo-testing-foundation
1. Go to this page and download the library: Download php-arsenal/symfony-mongo-testing-foundation 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/ */
php-arsenal / symfony-mongo-testing-foundation example snippets
$rootDir = realpath(__DIR__.'/..');
env = (new Dotenv())->usePutenv(true);
$dotenv->load("$rootDir/.env");
$dotenv->load("$rootDir/.env.test");
if (file_exists("$rootDir/.env.test.local")) {
$dotenv->load("$rootDir/.env.test.local");
}
composer