{"id":34841217,"url":"https://github.com/dknight/minify","last_synced_at":"2025-12-25T17:02:53.306Z","repository":{"id":547400,"uuid":"177488","full_name":"dknight/minify","owner":"dknight","description":"Minify JS and CSS for Frog CMS","archived":false,"fork":false,"pushed_at":"2009-05-20T13:31:38.000Z","size":92,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-15T02:27:32.885Z","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/dknight.png","metadata":{"files":{"readme":"README.textile","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":"2009-04-16T11:32:08.000Z","updated_at":"2020-01-30T22:37:51.000Z","dependencies_parsed_at":"2022-08-06T09:15:44.857Z","dependency_job_id":null,"html_url":"https://github.com/dknight/minify","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dknight/minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dknight%2Fminify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dknight%2Fminify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dknight%2Fminify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dknight%2Fminify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dknight","download_url":"https://codeload.github.com/dknight/minify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dknight%2Fminify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28033288,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"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":"2025-12-25T17:01:12.827Z","updated_at":"2025-12-25T17:02:53.298Z","avatar_url":"https://github.com/dknight.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. About\n\n'Minify' is a plugin to minify JavaScript and/or CSS code and combine it \ninto one file on the fly. This will increase performance of website.\u003cbr /\u003e\nSo you don't need to do dozens HTTP request for every JavaScript or CSS file. Minify plugin is more\nuseful and faster with \u003ca href=\"http://www.appelsiini.net/projects/funky_cache\"\u003eFunky cache\u003c/a\u003e\nplugin.\n\n\nh1. Usage\n\nInstall the minify plugin to your Frog CMS plugins directory:\n\n\u003cpre\u003e\n\u003ccode\u003e\n$cd /path/to/frog/plugins/\n$git clone git://github.com/dknight/minify.git\n\u003c/code\u003e\n\u003c/pre\u003e\n\nh2. Activate minify plugin\n\n!http://www.dmitri.me/misc/minify.png!\n\nh2. Set the settings in the\n\nSo next step you need to create 'cache' directory in your document root and make it\nwritable. Due to security settings most webservers doesn't allow you to create \ndirectories dynamically, so you need to create it manually. Create it in your DOCUMENT_ROOT/cache/\nand set writtable permissions.\n\n\u003cpre\u003e\n\u003ccode\u003e\n$mkdir /website/root/cache/\n$chmod 0666 /website/root/cache/\n\u003c/code\u003e\n\u003c/pre\u003e\n\nh2. Usage in Frog CMS\n\n\u003cpre\u003e\n\u003ccode\u003e\n\u003c?php\n$jsFiles = array(\n    '/public/javascripts/jquery-1.3.2.min.js',\n    '/public/javascripts/jquery.validate.min.js',\n    '/public/javascripts/jquery.form.js',\n    '/public/javascripts/frog.js'\n);\n$cssFiles = array(\n    'path/to/master.css',\n    'path/to/subpage.css',\n    'path/to/ie-fix.css'\n);\n\n$js_minify  = Minify::factory('js');\n$css_minify = Minify::factory('css');\n?\u003e\n\u003c/code\u003e\n\u003c/pre\u003e\n\nHTML:\n\n\u003ccode\u003e\n\u003cpre\u003e\n...\n\u003clink href=\"\u003c?php echo $css_minify-\u003eminify($cssFiles, true); ?\u003e\" rel=\"stylesheet\" type=\"text/css\" /\u003e\n...\n\u003cscript type=\"text/javascript\" src=\"\u003c?php echo $js_minify-\u003eminify($files, true); ?\u003e\"\u003e\u003c/script\u003e\n...\n\u003c/code\u003e\n\u003c/pre\u003e\n\nThe 'minify' method can pass 3 parameters:\n\n|_. name |_. description |_. type |_. default |\n| files | File to be minified | array [required] | array() |\n| output | Output to file or raw output into string | boolean [optinal] | false |\n| fileName | Name of output file | string [optinal] | 'min.js' or 'min.css' |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdknight%2Fminify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdknight%2Fminify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdknight%2Fminify/lists"}