PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Minify HTML CSS JS   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Minify HTML CSS JS
Compress Web files removing unnecessary text
Author: By
Last change: Apply fixes from StyleCI
Date: 5 years ago
Size: 527 bytes
 

Contents

Class file image Download
<?php

require_once 'classes/Minify.php';

$minify = new Minify();
$file = $minify->htmlMinify('test.html');
//$file = $minify->cssMinify("boostrap.css");
//$file = $minify->javascriptMinify("jsfile");
/* OR */
//$code = $minify->htmlMinify($code,"code");
//$code = $minify->cssMinify($code,"code")
//$code = $minify->javascriptMinify($code,"code")
/* These three functions support two arguments
First file or code,
second type default is file if you passed code so you should passed code in first argument
*/
var_dump($file);