{"id":16059074,"url":"https://github.com/gregmolnar/clientscriptpacker","last_synced_at":"2026-05-11T11:37:09.579Z","repository":{"id":142041322,"uuid":"2164061","full_name":"gregmolnar/ClientScriptPacker","owner":"gregmolnar","description":"ClientScriptPacker extension for yii framework","archived":false,"fork":false,"pushed_at":"2011-11-18T13:37:44.000Z","size":103,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T01:18:35.002Z","etag":null,"topics":[],"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/gregmolnar.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":"2011-08-06T06:35:46.000Z","updated_at":"2023-06-13T08:34:35.000Z","dependencies_parsed_at":"2023-03-12T09:46:06.355Z","dependency_job_id":null,"html_url":"https://github.com/gregmolnar/ClientScriptPacker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregmolnar/ClientScriptPacker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2FClientScriptPacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2FClientScriptPacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2FClientScriptPacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2FClientScriptPacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregmolnar","download_url":"https://codeload.github.com/gregmolnar/ClientScriptPacker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregmolnar%2FClientScriptPacker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32893748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-09T03:41:41.729Z","updated_at":"2026-05-11T11:37:09.558Z","avatar_url":"https://github.com/gregmolnar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Extends ClientScript to minify and pack registered assets. It uses the PHP port of Douglas Crockford's jsmin by rgrove (https://github.com/rgrove/jsmin-php).\n\n##Requirements\n\nI tested this extension with Yii 1.1.7 \u003c but it should work from 1.1 onwards.\n\n##Usage\n\nCopy the folder into the extensions folder of your app. Than in the configuration file add the following section under components:\n\n    'clientScript' =\u003e array(\n      'class' =\u003e 'ext.ClientScriptPacker.ClientScriptPacker',\n    ),\n\nIf this is done you can register your scriptfiles like you did before with `Yii::app()-\u003eclientScript-\u003eregisterScriptFile()` and it will create the packed and minified javascript files in the assets folder. Your original JS files will stay untouched. If you want to re-pack the files just delete the files from your assets folder. I extended the `registerScriptFile` and it accepts an array as well with multiple js files.\n\nIMPORTANT! You need to pass the path relatively to your ``$_SERVER['DOCUMENT_ROOT']`` to the registerScriptFile method.\n\nIf you experience any problem please give me a shout. \nI removed the caching because it didn't work well with the assets. The minify option is off by default because it can really slow down things. I need to rework this extension just need to find to do it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmolnar%2Fclientscriptpacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregmolnar%2Fclientscriptpacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregmolnar%2Fclientscriptpacker/lists"}