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(4mo ago)1378proprietaryPHPPHP &gt;=7.4

Since Feb 23Pushed 4mo 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 2d ago

READMEChangelog (1)Dependencies (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

35

—

LowBetter than 77% of packages

Maintenance76

Regular maintenance activity

Popularity15

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

130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/752832?v=4)[Peter Potrowl](/maintainers/peter17)[@peter17](https://github.com/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

[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2982.0M12](/packages/cocur-background-process)[pheme/yii2-toggle-column

Provides a toggle data column and action

23815.8k10](/packages/pheme-yii2-toggle-column)[horde/kronolith

Calendar and scheduling application

101.5k5](/packages/horde-kronolith)

PHPackages © 2026

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