Documentation

Minify

Table of Contents

cleanSpaces()  : mixed
Remove White spaces,tabs,new lines etc.
cssMinify()  : mixed
Minify CSS.
fixMaster()  : mixed
Add single space after <?php.
getFile()  : mixed
Fetch the content of file.
htmlMinify()  : mixed
Minify html.
javascriptMinify()  : mixed
Minify Js.
removeComments()  : mixed
Remove comments.

Methods

cleanSpaces()

Remove White spaces,tabs,new lines etc.

public cleanSpaces((mixed) $file) : mixed
Parameters
$file : (mixed)

valid code.

Tags
since
1.0.0
Return values
mixed

cssMinify()

Minify CSS.

public cssMinify((mixed) $file[, mixed $type = 'file' ]) : mixed
Parameters
$file : (mixed)

valid code.

$type : mixed = 'file'
Tags
since
1.0.0
Return values
mixed

fixMaster()

Add single space after <?php.

public fixMaster((mixed) $file) : mixed
Parameters
$file : (mixed)

valid code.

Tags
since
1.0.0
Return values
mixed

getFile()

Fetch the content of file.

public getFile((string) $file[, (string) $type = 'file' ]) : mixed
Parameters
$file : (string)

valid file with path.

$type : (string) = 'file'

file or buffer

Tags
since
1.0.0
Return values
mixed

htmlMinify()

Minify html.

public htmlMinify((mixed) $file[, mixed $type = 'file' ]) : mixed
Parameters
$file : (mixed)

valid code.

$type : mixed = 'file'
Tags
since
1.0.0
Return values
mixed

javascriptMinify()

Minify Js.

public javascriptMinify((mixed) $file[, mixed $type = 'file' ]) : mixed
Parameters
$file : (mixed)

valid code.

$type : mixed = 'file'
Tags
since
1.0.0
Return values
mixed

removeComments()

Remove comments.

public removeComments((mixed) $file) : mixed
Parameters
$file : (mixed)

valid code.

Tags
since
1.0.0
Return values
mixed

Search results