{"id":36969904,"url":"https://github.com/abordage/laravel-html-min","last_synced_at":"2026-01-13T21:41:54.311Z","repository":{"id":56856141,"uuid":"502840065","full_name":"abordage/laravel-html-min","owner":"abordage","description":"HtmlMin is very simple (and very fast) html compression package for Laravel","archived":false,"fork":false,"pushed_at":"2025-02-27T11:44:45.000Z","size":89,"stargazers_count":22,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T16:13:26.608Z","etag":null,"topics":["html-minifier","laravel-htmlmin"],"latest_commit_sha":null,"homepage":"","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/abordage.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-13T06:54:12.000Z","updated_at":"2025-02-27T11:44:48.000Z","dependencies_parsed_at":"2024-03-25T20:31:24.138Z","dependency_job_id":"48c8c0d5-9c9a-4c83-a483-ea0ba429c4c0","html_url":"https://github.com/abordage/laravel-html-min","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":0.375,"last_synced_commit":"a2abcc0c33c1c625db4fb56e5f096247de10e09e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/abordage/laravel-html-min","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abordage%2Flaravel-html-min","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abordage%2Flaravel-html-min/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abordage%2Flaravel-html-min/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abordage%2Flaravel-html-min/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abordage","download_url":"https://codeload.github.com/abordage/laravel-html-min/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abordage%2Flaravel-html-min/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["html-minifier","laravel-htmlmin"],"created_at":"2026-01-13T21:41:53.474Z","updated_at":"2026-01-13T21:41:54.306Z","avatar_url":"https://github.com/abordage.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\n# HtmlMin: Laravel package for HTML minification\n\nVery simple (and very fast) html compression.\n\n\u003cp style=\"text-align: center;\" align=\"center\"\u003e\n    \u003cimg alt=\"Laravel HtmlMin\" src=\"https://github.com/abordage/laravel-html-min/blob/master/docs/images/abordage-laravel-html-min-cover.png?raw=true\"\u003e\n\u003c/p\u003e\n\n\u003cp style=\"text-align: center;\" align=\"center\"\u003e\n\n\u003ca href=\"https://packagist.org/packages/abordage/laravel-html-min\" title=\"Packagist version\"\u003e\n    \u003cimg alt=\"Packagist Version\" src=\"https://img.shields.io/packagist/v/abordage/laravel-html-min\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/abordage/laravel-html-min/actions/workflows/tests.yml\" title=\"GitHub Tests Status\"\u003e\n    \u003cimg alt=\"GitHub Tests Status\" src=\"https://img.shields.io/github/actions/workflow/status/abordage/laravel-html-min/tests.yml?label=tests\"\u003e\n\u003c/a\u003e\n\n\n\u003ca href=\"https://github.com/abordage/laravel-html-min/actions/workflows/tests.yml\" title=\"GitHub Code Style Status\"\u003e\n    \u003cimg alt=\"GitHub Code Style Status\" src=\"https://img.shields.io/github/actions/workflow/status/abordage/laravel-html-min/php-cs-fixer.yml?label=code%20style\"\u003e\n\u003c/a\u003e\n\n\n\n\u003ca href=\"https://www.php.net/\" title=\"PHP version\"\u003e\n    \u003cimg alt=\"PHP Version Support\" src=\"https://img.shields.io/packagist/php-v/abordage/laravel-html-min\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/abordage/laravel-html-min/blob/master/README.md\" title=\"License\"\u003e\n    \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/abordage/laravel-html-min\"\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\n\n## Features\n- Removing extra whitespaces\n- Removing html comments (works correctly with `livewire/livewire` comments)\n- Removing trailing slashes from void elements (HTML5)\n- Skip `textarea`, `pre` and `script` elements\n- Very fast. See benchmark\n\n## Requirements\n- PHP 7.4 or higher (7.4, 8.0, 8.1, 8.2, 8.3, 8.4)\n- Laravel 8.x - 12.x\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require abordage/laravel-html-min\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"html-min-config\"\n```\n## Usage\nTo enable compression just register middleware:\n\n```php\n// app/Http/Kernel.php\n\nprotected $middleware = [\n    'web' =\u003e [\n        // other middleware\n        \n        \\Abordage\\LaravelHtmlMin\\Middleware\\HtmlMinify::class,\n    ],\n    \n    // ...\n];\n```\n\nIt's all. Optionally you can change the settings in `config/html-min.php`\n\n## Configuration\n\n| Option                                  | Default | Description                            |\n|-----------------------------------------|---------|----------------------------------------|\n| `enable`                                | `true`  | Enable/disable HTML minification       |\n| `find_doctype_in_document`              | `true`  | Skip minification if DOCTYPE not found |\n| `remove_whitespace_between_tags`        | `true`  | Remove whitespace between tags         |\n| `remove_blank_lines_in_script_elements` | `false` | Remove blank lines in `\u003cscript\u003e`       |\n| `remove_trailing_slashes`               | `false` | Convert `\u003clink /\u003e` to `\u003clink\u003e`         |\n\nSee `config/html-min.php` for detailed descriptions.\n\n## Benchmark\n\nSee [abordage/html-min-benchmark](https://github.com/abordage/html-min-benchmark)\n\n## Testing\n\n```bash\ncomposer test:all\n```\n\nor\n\n```bash\ncomposer test:phpunit\ncomposer test:phpstan\ncomposer test:phpcsf\n```\n\nor see https://github.com/abordage/laravel-html-min/actions/workflows/tests.yml\n\n## Feedback\n\nIf you have any feedback, comments or suggestions, please feel free to open an issue within this repository.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/abordage/.github/blob/master/CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Pavel Bychko](https://github.com/abordage)\n- [All Contributors](https://github.com/abordage/laravel-html-min/graphs/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabordage%2Flaravel-html-min","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabordage%2Flaravel-html-min","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabordage%2Flaravel-html-min/lists"}