{"id":13792773,"url":"https://github.com/cchlorine/pangu.php","last_synced_at":"2025-12-13T02:39:09.411Z","repository":{"id":57009888,"uuid":"39913863","full_name":"cchlorine/pangu.php","owner":"cchlorine","description":"Paranoid text spacing in PHP","archived":false,"fork":false,"pushed_at":"2018-08-20T14:24:45.000Z","size":16,"stargazers_count":82,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-29T18:02:50.102Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cchlorine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-29T20:09:44.000Z","updated_at":"2025-04-30T02:05:03.000Z","dependencies_parsed_at":"2022-08-21T14:50:54.999Z","dependency_job_id":null,"html_url":"https://github.com/cchlorine/pangu.php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cchlorine/pangu.php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchlorine%2Fpangu.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchlorine%2Fpangu.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchlorine%2Fpangu.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchlorine%2Fpangu.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cchlorine","download_url":"https://codeload.github.com/cchlorine/pangu.php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchlorine%2Fpangu.php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27647623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-10T02:00:12.818Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T22:01:15.841Z","updated_at":"2025-12-13T02:39:09.375Z","avatar_url":"https://github.com/cchlorine.png","language":"PHP","funding_links":[],"categories":["类库"],"sub_categories":["文本处理"],"readme":"pangu.php\n===\n![TravisCI](https://travis-ci.org/Kunr/pangu.php.svg)\n\nParanoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).\n\n* Go version: [pangu.go](https://github.com/vinta/pangu)\n* Java version: [pangu.java](https://github.com/vinta/pangu.java)\n* JavaScript version: [pangu.js](https://github.com/vinta/paranoid-auto-spacing)\n* Node.js version: [pangu.node](https://github.com/huei90/pangu.node)\n* Object-C version [pangu.objective-c](https://github.com/Cee/pangu.objective-c)\n* Python version: [pangu.py](https://github.com/vinta/pangu.py)\n* Ruby version: [pangu.rb](https://github.com/dlackty/pangu.rb)\n\n## Installation\n\nUsing composer\n```\ncomposer require kunr/pangu.php\n```\n\nOr manually\n\n```\ngit clone https://github.com/Kunr/pangu.php.git\n```\n\n## Usage\n\nRequire `pangu.php`\n```\nrequire 'pangu.php';\necho pangu('Jackie的鼻子有幾個？123個！'); // Jackie 的鼻子有幾個？123 個！\n```\n\nOr\n\nUse `pangu-cli.php`\n```\nphp pangu-cli.php \"Jackie的鼻子有幾個？123個！\" //// Jackie 的鼻子有幾個？123 個！\n```\n\n## License\nReleased under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchlorine%2Fpangu.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcchlorine%2Fpangu.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchlorine%2Fpangu.php/lists"}