PHP Classes

File: src/Utils/Template/Minifier.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Utils/Template/Minifier.php  >  Download  
File: src/Utils/Template/Minifier.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Update of src/Utils/Template/Minifier.php
Date: 2 years ago
Size: 997 bytes


Class file image Download

 * Minifier.php - JS and CSS minifier
 * Minify the javascript code generated by the Jaxon library and plugins.
 * @package jaxon-core
 * @author Thierry Feuzeu <>
 * @copyright 2016 Thierry Feuzeu <>
 * @license BSD 3-Clause License
 * @link

namespace Jaxon\Utils\Template;

MatthiasMullie\Minify\JS as JsMinifier;

     * Minify javascript code
     * @param string $sJsFile The javascript file to be minified
     * @param string $sMinFile The minified javascript file
     * @return boolean True if the file was minified
public function minify($sJsFile, $sMinFile)
$xJsMinifier = new JsMinifier();

For more information send a message to info at phpclasses dot org.