PHPackages                             peter17/js-beautify-php - 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. peter17/js-beautify-php

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

peter17/js-beautify-php
=======================

A JavaScript source code formatter written in PHP.

v1.0.0(2mo ago)1352proprietaryPHPPHP &gt;=7.4

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/peter17/js-beautify-php)[ Packagist](https://packagist.org/packages/peter17/js-beautify-php)[ GitHub Sponsors](https://github.com/peter17)[ RSS](/packages/peter17-js-beautify-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Usage
-----

[](#usage)

```
$obj = new JSBeautify('function escapeHtml(string){return String(string).replace(/[&"'`=\/]/g,function fromEntityMap(s){return entityMap[s]})}');
echo $obj->getResult();
```

the output will be

```
function escapeHtml(string) {
    return String(string).replace(/[&"'`=\/]/g, function fromEntityMap(s) {
        return entityMap[s]
    })
}

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance83

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 64.7% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

84d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/335d4761aac0bcdd8e9e08d74cfa82d5da6d35c045d7ca34bd86759559802c85?d=identicon)[peter17](/maintainers/peter17)

---

Top Contributors

[![lvqingan](https://avatars.githubusercontent.com/u/2076441?v=4)](https://github.com/lvqingan "lvqingan (11 commits)")[![peter17](https://avatars.githubusercontent.com/u/752832?v=4)](https://github.com/peter17 "peter17 (4 commits)")[![robinhoo1973](https://avatars.githubusercontent.com/u/6511003?v=4)](https://github.com/robinhoo1973 "robinhoo1973 (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/peter17-js-beautify-php/health.svg)

```
[![Health](https://phpackages.com/badges/peter17-js-beautify-php/health.svg)](https://phpackages.com/packages/peter17-js-beautify-php)
```

###  Alternatives

[sphpdox/sphpdox

PHPDoc to Sphinx phpdomain tool

4817.2k8](/packages/sphpdox-sphpdox)

PHPackages © 2026

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