PHPackages                             websharks/js-minifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. websharks/js-minifier

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

websharks/js-minifier
=====================

Compresses JavaScript code.

150511(11y ago)125.4k↓34.9%1GPL-3.0+JavaScriptPHP &gt;=5.3

Since Apr 26Pushed 10y ago3 watchersCompare

[ Source](https://github.com/websharks/js-minifier)[ Packagist](https://packagist.org/packages/websharks/js-minifier)[ Docs](https://github.com/websharks/js-minifier)[ RSS](/packages/websharks-js-minifier/feed)WikiDiscussions dev Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (1)

JavaScript Minification
-----------------------

[](#javascript-minification)

JavaScript minifier (i.e., compressor).

[![](https://camo.githubusercontent.com/3dfe771cba03931572e7a967ad14f00c480b5c152cda6420cd083ae3deabe6bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776562736861726b732f6a732d6d696e69666965722e737667)](https://github.com/websharks/js-minifier/blob/HEAD/LICENSE.txt)[![](https://camo.githubusercontent.com/fbb36fd2ffe8e6e39d45de7fe4c644d7f5fe8fe9f5c2d3d3988a9a23853161df/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164652d772532465f3130302532355f707572655f617765736f6d655f73617563652d4142383135462e7376673f6c6162656c3d6d616465)](http://websharks-inc.com/)[![](https://camo.githubusercontent.com/d983a9cee2d6ae45788929f268bd90537221ac5e024789af268dd00e09df8093/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f62792d576562536861726b735f496e632e2d3635363539382e7376673f6c6162656c3d6279)](http://www.websharks-inc.com/team/)[![](https://camo.githubusercontent.com/144183a6cf4769bcee4e188914d4f4fd2330dc8410dc9bc6c3c9453abe08f9ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d6c6174657374)](https://github.com/websharks/js-minifier/releases)[![](https://camo.githubusercontent.com/a4ccfa884d52aad4b97e8668cab87a1a5ae2130bccaf8b7905d37b3e489540e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/websharks/js-minifier)[![](https://camo.githubusercontent.com/be79fe77ff743f9a8d202e572f7434599e629b9b3de64f2302d877f740acce3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d697373756573)](https://github.com/websharks/js-minifier/issues)[![](https://camo.githubusercontent.com/4a3ded2b92f291e563f84a34884aff616c3b888722a5aa797c546dfefb76c5d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d666f726b73)](https://github.com/websharks/js-minifier/network)[![](https://camo.githubusercontent.com/4a356ed1eba3e5b55ead3b6eda21689cc36eb00262098a7dac317bef00f0e7d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d7374617273)](https://github.com/websharks/js-minifier/stargazers)[![](https://camo.githubusercontent.com/72d0bb1e27a14ec66fd941a7f8bbbed35fe10364777a0450693cdd58ad2ab778/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f776562736861726b732f6a732d6d696e69666965722f6c61746573742f746f74616c2e7376673f6c6162656c3d646f776e6c6f616473)](https://github.com/websharks/js-minifier/releases)[![](https://camo.githubusercontent.com/88f454c971dcf71643e96d9e18834dd1a80e955dcf24710e4ac5cc55f88a5b9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562736861726b732f6a732d6d696e69666965722e7376673f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/websharks/js-minifier)

---

Installation Instructions (Two Options)
---------------------------------------

[](#installation-instructions-two-options)

1. As a [Composer](https://packagist.org/packages/websharks/js-minifier) Dependency

```
{
    "require": {
        "websharks/js-minifier": "dev-master"
    }
}
```

2. Or, Download the PHAR Binary See:

---

Usage Example
-------------

[](#usage-example)

```
$js = 'var helloWorld = function() { console.log("Hello World"); };';
$compressed_js = WebSharks\JsMinifier\Core::compress($js);
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Total

2

Last Release

4070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c9e574030ba64b0b14dfbe9adfbd7633e0304ab3e2cc54ed9f427822eb6dcda?d=identicon)[jaswsinc](/maintainers/jaswsinc)

![](https://www.gravatar.com/avatar/79743cc4ae9c5dd8e76f40dc6157461066649dc46ea9fd1b35c8c1b27a411ea5?d=identicon)[raamdev](/maintainers/raamdev)

---

Tags

javascriptJScompressorwebsharks

### Embed Badge

![Health badge](/badges/websharks-js-minifier/health.svg)

```
[![Health](https://phpackages.com/badges/websharks-js-minifier/health.svg)](https://phpackages.com/packages/websharks-js-minifier)
```

###  Alternatives

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k33.1M462](/packages/matthiasmullie-minify)[nostalgiaz/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

5.0k367.2k4](/packages/nostalgiaz-bootstrap-switch)[stolz/assets

An ultra-simple-to-use assets management library

289531.9k8](/packages/stolz-assets)[tholu/php-packer

A PHP version of Packer, JavaScript obfuscation library originally created by Dean Edwards

141465.2k5](/packages/tholu-php-packer)[websharks/css-minifier

Compresses CSS.

181.7M2](/packages/websharks-css-minifier)[websharks/html-compressor

Combines &amp; compresses CSS/JS/HTML code.

417.1k1](/packages/websharks-html-compressor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
