PHPackages                             kunr/pangu.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. kunr/pangu.php

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

kunr/pangu.php
==============

Paranoid text spacing in PHP

821598PHP

Since Aug 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Kunr/pangu.php)[ Packagist](https://packagist.org/packages/kunr/pangu.php)[ RSS](/packages/kunr-panguphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

pangu.php
=========

[](#panguphp)

[![TravisCI](https://camo.githubusercontent.com/07933fe86f178c4490516fc124a02c417624f6ed13c44b2ac90bcb6aa9196310/68747470733a2f2f7472617669732d63692e6f72672f4b756e722f70616e67752e7068702e737667)](https://camo.githubusercontent.com/07933fe86f178c4490516fc124a02c417624f6ed13c44b2ac90bcb6aa9196310/68747470733a2f2f7472617669732d63692e6f72672f4b756e722f70616e67752e7068702e737667)

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

- Go version: [pangu.go](https://github.com/vinta/pangu)
- Java version: [pangu.java](https://github.com/vinta/pangu.java)
- JavaScript version: [pangu.js](https://github.com/vinta/paranoid-auto-spacing)
- Node.js version: [pangu.node](https://github.com/huei90/pangu.node)
- Object-C version [pangu.objective-c](https://github.com/Cee/pangu.objective-c)
- Python version: [pangu.py](https://github.com/vinta/pangu.py)
- Ruby version: [pangu.rb](https://github.com/dlackty/pangu.rb)

Installation
------------

[](#installation)

Using composer

```
composer require kunr/pangu.php

```

Or manually

```
git clone https://github.com/Kunr/pangu.php.git

```

Usage
-----

[](#usage)

Require `pangu.php`

```
require 'pangu.php';
echo pangu('Jackie的鼻子有幾個？123個！'); // Jackie 的鼻子有幾個？123 個！

```

Or

Use `pangu-cli.php`

```
php pangu-cli.php "Jackie的鼻子有幾個？123個！" //// Jackie 的鼻子有幾個？123 個！

```

License
-------

[](#license)

Released under the MIT License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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://www.gravatar.com/avatar/ae7953a64b43792c3d9deef73ef94db2a4f6e477ff2268c7870a8f185ed76cc8?d=identicon)[kunr](/maintainers/kunr)

---

Top Contributors

[![cchlorine](https://avatars.githubusercontent.com/u/8045582?v=4)](https://github.com/cchlorine "cchlorine (12 commits)")[![jxlwqq](https://avatars.githubusercontent.com/u/2421068?v=4)](https://github.com/jxlwqq "jxlwqq (2 commits)")[![h2y](https://avatars.githubusercontent.com/u/12909077?v=4)](https://github.com/h2y "h2y (1 commits)")

### Embed Badge

![Health badge](/badges/kunr-panguphp/health.svg)

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

PHPackages © 2026

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