PHPackages                             xxorax/jsxs - 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. xxorax/jsxs

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

xxorax/jsxs
===========

A Javascript compressor based on preg written in PHP.

43.3k2PHP

Since Jul 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/xxorax/JSXS)[ Packagist](https://packagist.org/packages/xxorax/jsxs)[ RSS](/packages/xxorax-jsxs/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

JSXS
====

[](#jsxs)

Another Javascript compressor, written in PHP.

Test online at

JSXS is in BETA test since 1 april 2009. Its possible the output compressed code not be a comptatible javascript code. Your browser can return a syntax error after the evaluation of it.

Requirement
-----------

[](#requirement)

JSXS requires a minimum of php 5.1.0 . works on all plateforms.

Usage
-----

[](#usage)

See [example file](https://github.com/xxorax/JSXS/blob/master/example.php).

Options
-------

[](#options)

- compatibility : add semi-colons at the end of block (like function, object...) if necessary. Currently, works only if shrink option is actived.
- reduce : removes blank spaces and comments.
- shrink : reduces the names of variables to shorter.
- concatString : all strings concatenated with the operator of addition are merged.

Features
--------

[](#features)

- adding semicolumn if necessary : In javascript language, the end of line can be interpreted as a semicolumn, so your code without blankspace is probably wrong. This feature adds semicolumns for prevent syntax error.
- remove multiple and unused semicolumn : Multiple ending semicolumn, and semicolumn before ending block are removed, except in for statements.
- remove blankspace and endline : simple and usefull.
- reduce variable names : The names of variable in non-global context are reduced to the smallest possible name, with none conflict. It's the same with function names.
- concat string : Two string separated by + can be concatened.

Example
-------

[](#example)

Uncompressed :

```
function test (arg1) {
  var func = function (arg1) {
    return arg1+2;
  }
  return 'your value' + ' : ' + arg1 + func(arg1);
}
```

Compressed :

```
function test(b){var c=function(a){return a+2};return'your value : '+b+c(b)}
```

Result explained:

- removed white space.
- concatened string : 'your value' + ' : ' =&gt; 'your value : '.
- reduced variable names : arg1 =&gt; b, func =&gt; c, arg1 =&gt; a.
- removed semicolumn : ...func(arg1); =&gt; ...c(b).
- adding semicolumn for compatibility "} return 'your val..." =&gt; "};return'your val...".

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/205049?v=4)[Martin PANEL](/maintainers/xxorax)[@xxorax](https://github.com/xxorax)

---

Top Contributors

[![xxorax](https://avatars.githubusercontent.com/u/205049?v=4)](https://github.com/xxorax "xxorax (7 commits)")[![jewome62](https://avatars.githubusercontent.com/u/472429?v=4)](https://github.com/jewome62 "jewome62 (5 commits)")

### Embed Badge

![Health badge](/badges/xxorax-jsxs/health.svg)

```
[![Health](https://phpackages.com/badges/xxorax-jsxs/health.svg)](https://phpackages.com/packages/xxorax-jsxs)
```

PHPackages © 2026

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