PHP code example of fm_ph / quark
1. Go to this page and download the library: Download fm_ph/quark 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/ */
fm_ph / quark example snippets
define('BASE_PATH', __DIR__);
// Require Composer autoloader
nstance();
$app->init();
// Render
echo $app->render();
// ...
// Custom configuration
$config = [
'locale' => [
'code' => 'fr',
'redirectIfOne' => true
]
]
// Get Application instance
$app = Quark\Application::getInstance();
// Init with custom configuration array
$app->init($config);