{"id":13623190,"url":"https://github.com/tedious/JShrink","last_synced_at":"2025-04-15T14:32:13.567Z","repository":{"id":2541470,"uuid":"3519018","full_name":"tedious/JShrink","owner":"tedious","description":"Javascript Minifier built in PHP ","archived":false,"fork":false,"pushed_at":"2024-01-01T23:08:16.000Z","size":303,"stargazers_count":752,"open_issues_count":15,"forks_count":151,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-11-08T11:45:50.639Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"http://www.tedivm.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tedious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"tedivm","tidelift":"packagist/tedivm/jshrink"}},"created_at":"2012-02-22T21:09:26.000Z","updated_at":"2024-10-12T20:04:05.000Z","dependencies_parsed_at":"2024-06-18T10:41:24.564Z","dependency_job_id":"f35313c4-b793-40ee-a102-043416e7fd33","html_url":"https://github.com/tedious/JShrink","commit_stats":{"total_commits":148,"total_committers":14,"mean_commits":"10.571428571428571","dds":0.2364864864864865,"last_synced_commit":"e72133d6e220d79295346954292536b0980eef80"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FJShrink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FJShrink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FJShrink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedious%2FJShrink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedious","download_url":"https://codeload.github.com/tedious/JShrink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249088955,"owners_count":21210892,"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":["hacktoberfest"],"created_at":"2024-08-01T21:01:29.026Z","updated_at":"2025-04-15T14:32:13.319Z","avatar_url":"https://github.com/tedious.png","language":"PHP","readme":"# JShrink [![Build Status](https://img.shields.io/github/actions/workflow/status/tedious/jshrink/pr_tests.yml?branch=master)](https://github.com/tedious/JShrink/actions/workflows/pr_tests.yml)\n\n[![License](http://img.shields.io/packagist/l/tedivm/JShrink.svg)](https://github.com/tedivm/JShrink/blob/master/LICENSE)\n[![Latest Stable Version](http://img.shields.io/github/release/tedious/JShrink.svg)](https://packagist.org/packages/tedivm/JShrink)\n[![Coverage Status](https://coveralls.io/repos/tedious/JShrink/badge.png?branch=master)](https://coveralls.io/r/tedivm/JShrink?branch=master)\n[![Total Downloads](http://img.shields.io/packagist/dt/tedivm/jshrink.svg)](https://packagist.org/packages/tedivm/JShrink)\n\nJShrink is a php class that minifies javascript so that it can be delivered to the client quicker. This code can be used\nby any product looking to minify their javascript on the fly (although caching the results is suggested for performance\nreasons). Unlike many other products this is not a port into php but a native application, resulting in better\nperformance.\n\n\n## Usage\n\nMinifying your code is simple call to a static function-\n\n```php\n\u003c?php\ninclude('vendor/autoload.php');\n\n// Basic (default) usage.\n$minifiedCode = \\JShrink\\Minifier::minify($js);\n\n// Disable YUI style comment preservation.\n$minifiedCode = \\JShrink\\Minifier::minify($js, array('flaggedComments' =\u003e false));\n```\n\n\n## Results\n\n* Raw - 586,990\n* Gzip - 151,301\n* JShrink - 371,982\n* JShrink and Gzip - 93,507\n\n\n## Installing\n\n### Composer\n\nInstalling JShrink can be done through a variety of methods, although Composer is\nrecommended.\n\n```yaml\n\"require\": {\n  \"tedivm/jshrink\": \"~1.0\"\n}\n```\n\n### Github\n\nReleases of JShrink are available on [Github](https://github.com/tedious/JShrink/releases).\n\n\n## License\n\nJShrink is licensed under the BSD License. See the LICENSE file for details.\n\nIn the spirit of open source, use of this library for evil is discouraged but not prohibited.\n\n\n## Reporting Security and Vulnerability Issues\n\nThis project utilizes the [Tidelift Security Reporting System](https://tidelift.com/security) for security and vulnerability reporting.\n\n\n## Support\n\nIssues can be opened directly in Github for issues that aren't related to security.\n\n[Professionally supported JShrink is now available with Tidelift.](https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink\u0026utm_medium=referral\u0026utm_campaign=readme)\n","funding_links":["https://github.com/sponsors/tedivm","https://tidelift.com/funding/github/packagist/tedivm/jshrink","https://tidelift.com/security","https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink\u0026utm_medium=referral\u0026utm_campaign=readme"],"categories":["目录","Table of Contents","PHP","Minifiers - JS \u0026 CSS","资源管理 Asset Management"],"sub_categories":["资产管理 Asset Management","Asset Management","Meetups"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedious%2FJShrink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedious%2FJShrink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedious%2FJShrink/lists"}