{"id":20035850,"url":"https://github.com/shakahl/hups-util-htmlcompressor","last_synced_at":"2026-05-15T05:32:58.759Z","repository":{"id":28726358,"uuid":"32247520","full_name":"shakahl/hups-util-htmlcompressor","owner":"shakahl","description":"HTML output compressor and minimizer written in PHP.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:23:12.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T18:38:24.026Z","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/shakahl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-15T06:03:35.000Z","updated_at":"2015-03-15T07:52:33.000Z","dependencies_parsed_at":"2025-01-12T18:41:01.676Z","dependency_job_id":null,"html_url":"https://github.com/shakahl/hups-util-htmlcompressor","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"2b659d2f35aa54c89f2294557dbbd718235183ab"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakahl%2Fhups-util-htmlcompressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakahl%2Fhups-util-htmlcompressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakahl%2Fhups-util-htmlcompressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakahl%2Fhups-util-htmlcompressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shakahl","download_url":"https://codeload.github.com/shakahl/hups-util-htmlcompressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465111,"owners_count":19967243,"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","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-11-13T10:09:29.456Z","updated_at":"2026-05-15T05:32:58.729Z","avatar_url":"https://github.com/shakahl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"HTML Compressor\n===============\n\nHTML output compressor and minimizer written in PHP. This package is a part of the Hups Framework.  \n\nFeatures\n--------\n\n-   Removes whitespaces\n-   Removes comments\n-   Replaces absolute URLs with relative ones\n-   Low memory usage\n\nInstallation\n------------\n\nhttps://packagist.org/packages/shakahl/hups-util-htmlcompressor\n\nAdd `shakahl/hups-util-htmlcompressor` as a requirement to `composer.json`:\n\n```javascript\n{\n    \"require\": {\n        \"shakahl/hups-util-htmlcompressor\": \"dev-master\"\n    }\n}\n```\n\nUpdate your packages with `composer update` or install with `composer install`.\n\nYou can also add the package using `composer require shakahl/hups-util-htmlcompressor` and later specifying the version you want (for now, `dev-master` is your best bet).\n\nUsage example\n-------------\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\u003c?php  \n$c = new \\Hups\\Util\\HTMLCompressor($html);\n$c-\u003ecompress();\n\necho $c-\u003eget();\n?\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nUnit testing\n------------\n\n### Under Windows\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ composer update\n$ vendor/bin/phpunit​.bat\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n### Under Linux\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ composer update\n$ vendor/bin/phpunit​\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakahl%2Fhups-util-htmlcompressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshakahl%2Fhups-util-htmlcompressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakahl%2Fhups-util-htmlcompressor/lists"}