2017 © Pedro Peláez
 

october-plugin compactor-plugin

Provides HTML minification

image

mcustiel/compactor-plugin

Provides HTML minification

  • Tuesday, October 25, 2016
  • by mcustiel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 245 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Compactor plugin

OctoberCMS plugin that provides HTML code minification., (*1)

Configuration

Default configuration for the plugin is:, (*2)

  • 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., (*3)

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:, (*4)

interface HtmlCompactorInterface
{
    /**
     * @param string $html
     * @return string
     */
    public function compactHtml($html);
}

The Versions

25/10 2016

dev-master

9999999-dev

Provides HTML minification

  Sources   Download

The Requires

 

html cms october minification compactation