定制 bakerysoft/laravel-html-minify 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bakerysoft/laravel-html-minify

Composer 安装命令:

composer require bakerysoft/laravel-html-minify

包简介

laravel minify html output

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

This package helps to minify your project`s html (blade file) output.

Requirements

Laravel Package
5.x to 9.x 2.x
10.0 to 11.x 3.x

Installation

You can install the package via composer:

composer require bakerysoft/laravel-html-minify

Sponsor Laravel HTML Minifier on GitHub

Become a sponsor to Dipesh Sukhia .

Usage

php artisan vendor:publish --tag=LaravelHtmlMinify


you should add middleware to your web middleware group within your app/Http/Kernel.php file:
use bakerysoft\LaravelHtmlMinify\Middleware\LaravelMinifyHtml;
LaravelMinifyHtml::class

add in env
for enable
HTML_MINIFY = true
for disable
HTML_MINIFY = false

exclude route name for exclude from minify
'exclude_route' => [
        // 'routeName'
]

for particular html part 
LaravelHtmlMinifyFacade::htmlMinify("<div>...</div>");

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dipesh.sukhia@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 142
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固