mcustiel / compactor-plugin
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
Provides HTML minification
Package info
github.com/mcustiel/oc-compactor-plugin
Type:october-plugin
pkg:composer/mcustiel/compactor-plugin
dev-master
2016-10-25 12:23 UTC
Requires
This package is auto-updated.
Last update: 2023-07-19 07:28:26 UTC
README
OctoberCMS plugin that provides HTML code minification.
Configuration
Default configuration for the plugin is:
- config.php:
return [ 'compactation' => [ 'enabled' => false, 'compactor' => '\\Mcustiel\\Compactor\\Classes\\Services\\Implementation\\PhpWeeHtmlCompactor', ], ];
To activate page minification, you need to overwrite the config as explained in october's documentation and set 'enabled' to true.
If you want to add your own html minificator, you can specify it in the config. Your minificator must implement \Mcustiel\Compactor\Classes\Services\HtmlCompactorInterface:
interface HtmlCompactorInterface { /** * @param string $html * @return string */ public function compactHtml($html); }