{"id":17458135,"url":"https://github.com/pocesar/minify-kohana","last_synced_at":"2025-03-21T03:33:25.791Z","repository":{"id":1152998,"uuid":"1038205","full_name":"pocesar/minify-kohana","owner":"pocesar","description":"Minify module for Kohana 3.x","archived":false,"fork":false,"pushed_at":"2016-03-02T23:13:41.000Z","size":383,"stargazers_count":52,"open_issues_count":1,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-18T06:28:26.413Z","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/pocesar.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":"2010-10-30T20:25:55.000Z","updated_at":"2022-12-27T22:43:15.000Z","dependencies_parsed_at":"2022-08-16T12:15:30.091Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/minify-kohana","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fminify-kohana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fminify-kohana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fminify-kohana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fminify-kohana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/minify-kohana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811374,"owners_count":16884305,"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-10-18T03:55:12.634Z","updated_at":"2024-10-28T09:17:09.810Z","avatar_url":"https://github.com/pocesar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"For Kohana 3.2, use the 3.2 branch, the only thing that changes is the case on the filenames\n\nIt's a Minify module based on the best minifier for PHP imho \u003e https://github.com/mrclay/minify\nExtract the contents to 'modules' folder, enable it in the bootstrap:\n\n```html\n  Kohana::modules(array(\n    'minify' =\u003e MODPATH.'minify', // Minify\n  ));\n```\n\nand the only thing you need to do actually, is to create a subfolder on 'application/cache' called minify, and you're ready to go (otherwise you'll get problems with the file cache).\nCall it in your HTML files like:\n\n```html\n  \u003clink href=\"/min?f=file1.css,file2.css,file3.css\u0026b=/css/\" rel=\"stylesheet\"\u003e\n```\n\n#### Don't forget to copy the file `modules/minify/config/minify.php` to your applications folder in `application/config/minify.php`\n##### Don't make modifications inside the modules folder\n\nIt's already configured with a route called minify, that maps to '/min', and if you don't want to output what is your js or\ncss folder, you can use groups, by specifying it in your `/application/config/minify.php` file:\n\n### in PHP:\n\n```php\n  return array(\n    'groupsConfig' =\u003e array(\n      'css' =\u003e array('//css/file1.css', '//css/file2.css', '//css/file3.css'),\n      'js' =\u003e array('//js/jquery.js', '//js/modernizr.js', '//js/plugin/orbit.js')\n    )\n  );\n```\n\n### in HTML:\n\n```html\n\u003clink href=\"/min?g=css\" rel=\"stylesheet\"\u003e\n```\n\n### You may call groups like:\n\n```html\n\u003clink href=\"/min/css\" rel=\"stylesheet\"\u003e\n```\n\n### Kohana style:\n\n```html\n\u003c?php echo html::style('min?g=css') // or html::style('min/css') ?\u003e\n```\n\n### Debugging\n\nAppend `?debug=1` to your `min/` URL, it will show you what's going on in your file.\n\nHave fun!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fminify-kohana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Fminify-kohana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fminify-kohana/lists"}