{"id":23654414,"url":"https://github.com/megaads-vn/laravel-minify-html","last_synced_at":"2025-09-01T05:31:33.352Z","repository":{"id":62526676,"uuid":"109241938","full_name":"megaads-vn/laravel-minify-html","owner":"megaads-vn","description":"HTML minify library for laravel","archived":false,"fork":false,"pushed_at":"2020-07-15T03:18:41.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-20T07:27:13.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megaads-vn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-02T09:11:41.000Z","updated_at":"2020-07-15T03:18:43.000Z","dependencies_parsed_at":"2022-11-02T14:02:09.881Z","dependency_job_id":null,"html_url":"https://github.com/megaads-vn/laravel-minify-html","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/megaads-vn/laravel-minify-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaads-vn%2Flaravel-minify-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaads-vn%2Flaravel-minify-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaads-vn%2Flaravel-minify-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaads-vn%2Flaravel-minify-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megaads-vn","download_url":"https://codeload.github.com/megaads-vn/laravel-minify-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaads-vn%2Flaravel-minify-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-28T18:59:38.565Z","updated_at":"2025-09-01T05:31:33.098Z","avatar_url":"https://github.com/megaads-vn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel HTML Minify\n\n### For Laravel 4\n## About\n\nThis package compresses the HTML output from your Laravel 4 application, seamlessly reducing the overall response size of your pages.\n\nOther scripts that I've seen will compress the HTML output on-the-fly for each request. Instead, this package extends the Blade compiler to save the compiled template files to disk in their compressed state, reducing the overhead for each request.\n\n\n## Installation\n\n1. Add `\"megaads-vn/laravel-minify-html\":  \"1.*\"` to **composer.json**.\n2. Run `composer update`\n```\n    Or can using command composer require megaads-vn/laravel-minify-html\n```\n3. Add `MegaAds\\LaravelHtmlMinify\\LaravelHtmlMinifyServiceProvider` to the list of providers in **app/config/app.php**.\n4. **Important:** You won't see any changes until you edit your `*.blade.php` template files. Once Laravel detects a change, it will recompile them, which is when this package will go to work. To force all views to be recompiled, just run this command: `find . -name \"*.blade.php\" -exec touch {} \\;`\n\n## Config\n\nOptionally, you can choose to customize how the minifier functions for different environments. Publish the configuration file and edit accordingly.\n\n    $ php artisan config:publish megaads-vn/laravel-minify-html\n\n### Options\n\n- **`enabled`** - *boolean*, default **true**\n\nIf you are using a javascript framework that conflicts with Blade's tags, you can change them.\n\n- **`blade.contentTags`** - *array*, default `[[]]` and `]]`\n- **`blade.escapedContentTags`** - *array*, default `[[[` and `]]]`\n\n#### Skipping minification\n\nTo prevent the minification of a view file, add `skipmin` somewhere in the view.\n\n```\n[[-- skipmin --]]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegaads-vn%2Flaravel-minify-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegaads-vn%2Flaravel-minify-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegaads-vn%2Flaravel-minify-html/lists"}