PHP code example of dipeshsukhia / laravel-html-minify

1. Go to this page and download the library: Download dipeshsukhia/laravel-html-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/ */

    

dipeshsukhia / laravel-html-minify example snippets

 php
php artisan vendor:publish --tag=LaravelHtmlMinify
 php
\DipeshSukhia\LaravelHtmlMinify\Middleware\LaravelMinifyHtml::class
 php
HTML_MINIFY=true
 php
HTML_MINIFY=false
 php
'exclude_route' => [
        // 'routeName'
]
 php
LaravelHtmlMinifyFacade::htmlMinify("<div>...</div>");
 php
LaravelHtmlMinifyFacade::excludeHtmlMinify("<div>...</div>");
 php
@excludeMinify
    <div> exclude code from Minify </div>
@endExcludeMinify