Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tedious/JShrink
Javascript Minifier built in PHP
https://github.com/tedious/JShrink
hacktoberfest
Last synced: about 1 month ago
JSON representation
Javascript Minifier built in PHP
- Host: GitHub
- URL: https://github.com/tedious/JShrink
- Owner: tedious
- License: bsd-3-clause
- Created: 2012-02-22T21:09:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T23:08:16.000Z (12 months ago)
- Last Synced: 2024-08-01T21:56:20.387Z (4 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage: http://www.tedivm.com
- Size: 296 KB
- Stars: 749
- Watchers: 38
- Forks: 152
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-php - JShrink - A JavaScript minifier library. (Table of Contents / Asset Management)
- awesome-php-cn - JShrink - 一个JavaScript库缩小镜. (目录 / 资产管理 Asset Management)
- awesome-projects - JShrink - A JavaScript minifier library. (PHP / Asset Management)
- awesome-php - JShrink - A JavaScript minifier library. (Table of Contents / Asset Management)
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)
[![License](http://img.shields.io/packagist/l/tedivm/JShrink.svg)](https://github.com/tedivm/JShrink/blob/master/LICENSE)
[![Latest Stable Version](http://img.shields.io/github/release/tedious/JShrink.svg)](https://packagist.org/packages/tedivm/JShrink)
[![Coverage Status](https://coveralls.io/repos/tedious/JShrink/badge.png?branch=master)](https://coveralls.io/r/tedivm/JShrink?branch=master)
[![Total Downloads](http://img.shields.io/packagist/dt/tedivm/jshrink.svg)](https://packagist.org/packages/tedivm/JShrink)JShrink is a php class that minifies javascript so that it can be delivered to the client quicker. This code can be used
by any product looking to minify their javascript on the fly (although caching the results is suggested for performance
reasons). Unlike many other products this is not a port into php but a native application, resulting in better
performance.## Usage
Minifying your code is simple call to a static function-
```php
false));
```## Results
* Raw - 586,990
* Gzip - 151,301
* JShrink - 371,982
* JShrink and Gzip - 93,507## Installing
### Composer
Installing JShrink can be done through a variety of methods, although Composer is
recommended.```yaml
"require": {
"tedivm/jshrink": "~1.0"
}
```### Github
Releases of JShrink are available on [Github](https://github.com/tedious/JShrink/releases).
## License
JShrink is licensed under the BSD License. See the LICENSE file for details.
In the spirit of open source, use of this library for evil is discouraged but not prohibited.
## Reporting Security and Vulnerability Issues
This project utilizes the [Tidelift Security Reporting System](https://tidelift.com/security) for security and vulnerability reporting.
## Support
Issues can be opened directly in Github for issues that aren't related to security.
[Professionally supported JShrink is now available with Tidelift.](https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink&utm_medium=referral&utm_campaign=readme)