Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shakahl/hups-util-htmlcompressor
HTML output compressor and minimizer written in PHP.
https://github.com/shakahl/hups-util-htmlcompressor
Last synced: about 2 months ago
JSON representation
HTML output compressor and minimizer written in PHP.
- Host: GitHub
- URL: https://github.com/shakahl/hups-util-htmlcompressor
- Owner: shakahl
- License: mit
- Created: 2015-03-15T06:03:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:23:12.000Z (about 1 year ago)
- Last Synced: 2024-04-04T14:46:27.598Z (9 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HTML Compressor
===============HTML output compressor and minimizer written in PHP. This package is a part of the Hups Framework.
Features
--------- Removes whitespaces
- Removes comments
- Replaces absolute URLs with relative ones
- Low memory usageInstallation
------------https://packagist.org/packages/shakahl/hups-util-htmlcompressor
Add `shakahl/hups-util-htmlcompressor` as a requirement to `composer.json`:
```javascript
{
"require": {
"shakahl/hups-util-htmlcompressor": "dev-master"
}
}
```Update your packages with `composer update` or install with `composer install`.
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).
Usage example
-------------~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compress();echo $c->get();
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Unit testing
------------### Under Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ composer update
$ vendor/bin/phpunit.bat
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~### Under Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ composer update
$ vendor/bin/phpunit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~