2017 © Pedro PelĂĄez
 

library hups-util-htmlcompressor

HTML output compressor and minimizer written in PHP.

image

shakahl/hups-util-htmlcompressor

HTML output compressor and minimizer written in PHP.

  • Sunday, March 15, 2015
  • by shakahl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HTML Compressor

HTML output compressor and minimizer written in PHP. This package is a part of the Hups Framework.  , (*1)

Features

  • Removes whitespaces
  • Removes comments
  • Replaces absolute URLs with relative ones
  • Low memory usage

Installation

https://packagist.org/packages/shakahl/hups-util-htmlcompressor, (*2)

Add shakahl/hups-util-htmlcompressor as a requirement to composer.json:, (*3)

{
    "require": {
        "shakahl/hups-util-htmlcompressor": "dev-master"
    }
}

Update your packages with composer update or install with composer install., (*4)

You can also add the package using composer require shakahl/hups-util-htmlcompressor and later specifying the version you want (for now, dev-master is your best bet)., (*5)

Usage example

<?php  
$c = new \Hups\Util\HTMLCompressor($html);
$c->compress();

echo $c->get();
?>

Unit testing

Under Windows

$ composer update
$ vendor/bin/phpunit​.bat

Under Linux

$ composer update
$ vendor/bin/phpunit​

The Versions

15/03 2015

dev-master

9999999-dev https://github.com/shakahl/hups-util-htmlcompressor

HTML output compressor and minimizer written in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php html compress hups