PHP code example of runchance / rcmaker
1. Go to this page and download the library: Download runchance/rcmaker 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/ */
runchance / rcmaker example snippets
return [
'app' => [
'domains' => ['file.test.com'],
'document_root' => 'file', //绑定静态目录(./public/file)
'index_default' => 'index.html', //绑定静态首页(./public/file/index.html)
'static_preload_extensions' => ['css', 'js', 'html'],//预热静态文件类型
'enable_static_file' => true,//启用静态文件直出
'enable_static_gzip' => true,//启用静态文件 gzip 压缩
'enable_static_preload' => true //启用静态文件预热
],
];