{"id":36428373,"url":"https://github.com/mano290/laravel-minify-html","last_synced_at":"2026-01-11T18:26:41.948Z","repository":{"id":57081893,"uuid":"143572309","full_name":"mano290/laravel-minify-html","owner":"mano290","description":"Compress output Laravel HTML","archived":false,"fork":false,"pushed_at":"2018-08-05T01:46:06.000Z","size":284,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-10T02:03:34.303Z","etag":null,"topics":["blade-template","laravel","laravel-package","minify-html","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mano290.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-05T00:30:17.000Z","updated_at":"2024-07-03T06:24:26.000Z","dependencies_parsed_at":"2022-08-24T14:58:18.258Z","dependency_job_id":null,"html_url":"https://github.com/mano290/laravel-minify-html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mano290/laravel-minify-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mano290%2Flaravel-minify-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mano290%2Flaravel-minify-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mano290%2Flaravel-minify-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mano290%2Flaravel-minify-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mano290","download_url":"https://codeload.github.com/mano290/laravel-minify-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mano290%2Flaravel-minify-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28317703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["blade-template","laravel","laravel-package","minify-html","php"],"created_at":"2026-01-11T18:26:41.390Z","updated_at":"2026-01-11T18:26:41.939Z","avatar_url":"https://github.com/mano290.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Minify Output HTML\n\nPacote para minificar o html de saída gerado pelo laravel sem utilizar bibliotecas externas.\n\n## Instalação da biblioteca\n\nUsando o composer utilize o seguinte comando:\n\n`composer require workspace/laravel-minify-html`\n\n## Como utilizar?\n\nO pacote fornece uma middleware onde comprimi o HTML gerado pelo response laravel.\n\nAdicone a middleware `CompressHtml` no arquivo `App\\Http\\Kernel` no atributo `protected $middleware`\n\nExemplo:\n\n```php\nclass Kernel extends HttpKernel\n{\n    /**\n     * The application's global HTTP middleware stack.\n     *\n     * These middleware are run during every request to your application.\n     *\n     * @var array\n     */\n    protected $middleware = [\n        // ... Outras middlewares do projeto\n        \\Workspace\\LaravelMinifyHtml\\Middleware\\CompressHtml::class,\n    ];\n}\n```\n\nCaso você queria desabilitar a compressão HTML sem retirar a middleware coloque em seu `.env`\n\n```dotenv\n## Disable minify output html\nLARAVEL_MINIFY_HTML=false\n```\n\n## Exemplos da saída HTML\n\n- **Com a middleware habilitada**\n\n![With middleware](images/with_middleware.PNG?raw=true \"With middleware\")\n\n- **Com a middleware desabilitada**\n\n![Without middleware](images/without_middleware.PNG?raw=true \"Without middleware\")\n\n## Changelog\n\nLista de mudanças, melhorias e correções de bugs. \n\n### *v1.0.0 - (04 Agosto 2018)*\n\n- Criação e configuração da bilbioteca ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmano290%2Flaravel-minify-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmano290%2Flaravel-minify-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmano290%2Flaravel-minify-html/lists"}