1. Go to this page and download the library: Download mecanik/zf3turbo 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/ */
mecanik / zf3turbo example snippets
return [
'zf3turbo' => [
// Completely enable/disable all functionality
'enabled' => true,
// Control current engine options
'engine_options' => [
// Force all routes to https:// and choose redirect http code
// Recommended redirect_code is 301
'ssl' => [
'enabled' => false,
'redirect_code' => 301,
],
'html_minifier' => [
// Completely enable/disable all functionality
'enabled' => true,
// remove HTML comments (not containing IE conditional comments)
// Recommended: true
'remove_comments' => true,
// remove whitespaces and line breaks
// Recommended: true
'remove_whitespaces' => true,
// remove trailing slash from void elements
// Optional
'remove_trailing_slashes' => true,
],
// Soon...
'html_cache' => [],
'css_minifier' => [
// Completely enable/disable all functionality
'enabled' => true,
// This will minify inline <style></style> tags, will strip comments and white spaces and new lines.
// Warning: Might break some styles, use with caution.
'minify_inline_styles' => true,
],
'js_minifier' => [
// Completely enable/disable all functionality
'enabled' => false,
// This will minify inline <script></script> tags, will strip comments and white spaces and new lines.
// Warning: Might break some styles, use with caution.
'minify_inline_js' => true,
],
// Push assets via HTTP/2 to the browser
'http2_push' => [
// Completely enable/disable all functionality
'enabled' => true,
// Push all local CSS files via HTTP/2
'push_css' => true,
// Push all local JS files via HTTP/2
'push_js' => true,
// Push all local IMG files via HTTP/2
'push_images' => true,
],
],
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.