{"id":36419468,"url":"https://github.com/babounlek/minify","last_synced_at":"2026-01-11T17:04:58.432Z","repository":{"id":62490951,"uuid":"101748205","full_name":"babounlek/minify","owner":"babounlek","description":"Package to minify css and javascript script or file","archived":false,"fork":false,"pushed_at":"2017-08-29T15:58:47.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-28T04:51:57.078Z","etag":null,"topics":["laravel","minify-css","minify-javascript","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babounlek.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-08-29T10:15:26.000Z","updated_at":"2017-08-29T11:37:39.000Z","dependencies_parsed_at":"2022-11-02T11:16:07.658Z","dependency_job_id":null,"html_url":"https://github.com/babounlek/minify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/babounlek/minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babounlek%2Fminify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babounlek%2Fminify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babounlek%2Fminify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babounlek%2Fminify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babounlek","download_url":"https://codeload.github.com/babounlek/minify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babounlek%2Fminify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314264,"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":["laravel","minify-css","minify-javascript","php"],"created_at":"2026-01-11T17:04:57.739Z","updated_at":"2026-01-11T17:04:58.420Z","avatar_url":"https://github.com/babounlek.png","language":"PHP","readme":"# Minify\n## Intallation\nFor installation, add a dependency on babounlek/minify to your composer.json\n\n```sh\ncomposer require babounlek/minify \"dev-master\"\n```\n\n## Usage\nIn your app.php,\n\nIn providers section add:\n\n```php\nbabounlek\\minify\\minifyServiceProvider::class,\n```\nNow in aliases section add:\n\n```php\n'minify' =\u003e babounlek\\minify\\minify::class,\n```\n\n```php\nuse minify;\n\n$min = new minify($source);\n$min-\u003esetExtension(\"css\");\n$result = $min-\u003eminify();\n\nor\n\n$min = new minify();\n$min-\u003eaddsource($source);\n$min-\u003esetExtension(\"css\");\n$result = $min-\u003eminify();\n\n/*$result is an array containing of tree elements as:\n- first is the compressed string\n- second is the size of original string\n- third is the size of final string\n*/\n\n/* $source can be a css or javascript script or url of css or javascript file*/\n```\n\n### Sample\n#### input\n```css\n.container-search {\n\tmargin-top: 55px;\n\tmargin-bottom: 10px;\n}\n```\n#### output\n```php\n['.container-search{margin-top:55px;margin-bottom:10px}', 66,56]\n```\n\n## Try it\nTry it online at: \u003chttp://rank2me.com/en/minify\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabounlek%2Fminify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabounlek%2Fminify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabounlek%2Fminify/lists"}