{"id":18794565,"url":"https://github.com/effectra/minifyer","last_synced_at":"2026-05-04T12:41:50.144Z","repository":{"id":164529547,"uuid":"640008855","full_name":"effectra/minifyer","owner":"effectra","description":"The Minify class provides methods to minify HTML, JSON, and CSS content.","archived":false,"fork":false,"pushed_at":"2023-06-20T10:32:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-29T16:34:07.007Z","etag":null,"topics":["css","html","json","minify","php"],"latest_commit_sha":null,"homepage":"","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/effectra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-12T18:47:49.000Z","updated_at":"2023-05-13T10:32:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d408d41-49f1-422a-b210-197a473f4e31","html_url":"https://github.com/effectra/minifyer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fminifyer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fminifyer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fminifyer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fminifyer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectra","download_url":"https://codeload.github.com/effectra/minifyer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718702,"owners_count":19685798,"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":["css","html","json","minify","php"],"created_at":"2024-11-07T21:29:48.064Z","updated_at":"2025-12-29T18:30:12.830Z","avatar_url":"https://github.com/effectra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minifyer\n\nThe `Minify` class provides methods to minify HTML, JSON, and CSS content.\n\n## Usage\n\n```php\n\u003c?php\n\nuse Effectra\\Minifyer\\Minify;\n\n// Minify HTML\n$htmlContent = '\u003chtml\u003e...\u003c/html\u003e';\n$minifiedHtml = Minify::html($htmlContent);\n\n// Minify JSON\n$jsonContent = '{\"key\": \"value\"}';\n$minifiedJson = Minify::json($jsonContent);\n\n// Minify CSS\n$cssContent = 'body { color: red; }';\n$minifiedCss = Minify::css($cssContent);\n```\n\n## Methods\n\n### `html(string $content): string`\n\nMinify HTML content by removing unnecessary whitespace and comments.\n\nParameters:\n- `$content` (string): The HTML content to be minified.\n\nReturns:\n- (string): The minified HTML content.\n\n### `json(string $content): string`\n\nMinify JSON content by decoding and then encoding it.\n\nParameters:\n- `$content` (string): The JSON content to be minified.\n\nReturns:\n- (string): The minified JSON content.\n\n### `css(string $content): string`\n\nMinify CSS content by removing unnecessary whitespace and line breaks.\n\nParameters:\n- `$content` (string): The CSS content to be minified.\n\nReturns:\n- (string): The minified CSS content.\n\n\nPlease make sure to adjust the code and descriptions as needed for your specific use case. Let me know if you need any further assistance!\n\"# minifyer\" \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fminifyer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectra%2Fminifyer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fminifyer/lists"}