Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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