Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcocesarato/php-minifier
This class can minify HTML, JavaScript and CSS to take less space. It can take a string with either HTML, JavaScript or CSS, and parses it to eliminate unnecessary text. The class returns as result a a string that is smaller than the original.
https://github.com/marcocesarato/php-minifier
class compress compressor css html javascript js minfy minifier php
Last synced: about 1 month ago
JSON representation
This class can minify HTML, JavaScript and CSS to take less space. It can take a string with either HTML, JavaScript or CSS, and parses it to eliminate unnecessary text. The class returns as result a a string that is smaller than the original.
- Host: GitHub
- URL: https://github.com/marcocesarato/php-minifier
- Owner: marcocesarato
- License: gpl-3.0
- Created: 2019-05-31T19:50:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T13:19:43.000Z (about 2 years ago)
- Last Synced: 2024-11-09T03:06:44.119Z (about 2 months ago)
- Topics: class, compress, compressor, css, html, javascript, js, minfy, minifier, php
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Minifier
**Version:** 0.1.5 beta
**Github:** https://github.com/marcocesarato/PHP-Minifier
**Author:** Marco Cesarato
## Description
This class can minify HTML, JavaScript and CSS to take less space.
It can take a string with either HTML, JavaScript or CSS, and parses it to eliminate unnecessary text.
The class returns as result a a string that is smaller than the original.
## Requirements
- php 4+
## Install
### Composer
1. Install composer
2. Type `composer require marcocesarato/minifier`
4. Enjoy## Usage
```php
ob_start();$html = <<
Hello World
Hello World