PHP code example of myzend / minify

1. Go to this page and download the library: Download myzend/minify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

myzend / minify example snippets


$this->headScript()->appendFile($this->minify($this->basePath() . '/js/login/bootstrap.js'));
$this->headScript()->appendFile($this->minify($this->basePath() . '/js/login/jquery.validate.js'));

$this->headLink()->appendStylesheet(
							$this->minify(
								array(
									$this->basePath() . '/css/bootstrap/bootstrap.css',
									$this->basePath() . '/css/bootstrap/bootstrap-responsive.css',
									$this->basePath() . '/css/animate.css',
									$this->basePath() . '/css/main.css'
								)
							)
						);


$this->headLink()->appendStylesheet($this->minify($this->basePath() . '/css/login/bootstrap/*.css'));

$this->headLink()->appendStylesheet(
							$this->minify(
								array(
									$this->basePath() . '/css/bootstrap/*.css',
									$this->basePath() . '/css/animate.css',
									$this->basePath() . '/css/main.css'
								)
							)
						);