__DIR__.'/tmp', 'public' => __DIR__.'/tmp/public', 'storage' => __DIR__.'/tmp/storage', 'vendor' => __DIR__.'/../../vendor', ]) ); $pipeline = $installation ->configPath('config.php') ->debugMode(true) ->baseUrl(BaseUrl::fromString('http://localhost')) ->databaseConfig( new DatabaseConfig('mysql', $host, $port, $name, $user, $pass, $pref) ) ->adminUser(new AdminUser( 'admin', 'secret', 'admin@flarum.email' )) ->settings(['mail_driver' => 'log']) ->build(); /* * Run the actual configuration */ $pipeline->run(); echo "Installation complete\n";