1. Go to this page and download the library: Download imarc/craft-boost 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/ */
imarc / craft-boost example snippets
/* craft/config/general.php */
$env = preg_replace('#^.*/#', '', dirname(CRAFT_BASE_PATH));
$config = [
'omitScriptNameInUrls' => true,
'maxUploadFileSize' => 104857600
];
switch ($env) {
case 'dev':
$config = array_merge($config, [
'siteUrl' => 'http://dev.example.com',
'devMode' => true,
'useCompressedJs' => false,
]);
break;
case 'stage':
$config = array_merge($config, [
'siteUrl' => 'http://stage.example.com',
'useCompressedJs' => false,
]);
break;
case 'prod':
$config = array_merge($config, [
'siteUrl' => 'http://www.example.com',
]);
break;
default:
die("Unfortunately, the server is misconfigured. Please review the configuration in config/general.php.");
}
return $config;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.