Skip to content

cchlorine/pangu.php

Repository files navigation

pangu.php

TravisCI

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).

Installation

Using composer

composer require kunr/pangu.php

Or manually

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

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

Released under the MIT License.

About

Paranoid text spacing in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages