{"id":13700149,"url":"https://github.com/duguying/pinyin-php","last_synced_at":"2025-10-07T10:38:21.825Z","repository":{"id":9968694,"uuid":"11993223","full_name":"duguying/pinyin-php","owner":"duguying","description":"`pinyin-php` is a php extension which could translate Chinese character into Chinese PinYin.","archived":false,"fork":false,"pushed_at":"2022-04-29T07:55:40.000Z","size":842,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T06:28:01.150Z","etag":null,"topics":["php-extension","pinyin-php"],"latest_commit_sha":null,"homepage":"","language":"C","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/duguying.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":"2013-08-09T04:40:42.000Z","updated_at":"2024-04-12T01:13:42.000Z","dependencies_parsed_at":"2022-09-19T05:01:49.432Z","dependency_job_id":null,"html_url":"https://github.com/duguying/pinyin-php","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/duguying/pinyin-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fpinyin-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fpinyin-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fpinyin-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fpinyin-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duguying","download_url":"https://codeload.github.com/duguying/pinyin-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fpinyin-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272366783,"owners_count":24922221,"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-08-27T02:00:09.397Z","response_time":76,"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":["php-extension","pinyin-php"],"created_at":"2024-08-02T20:00:49.062Z","updated_at":"2025-10-07T10:38:16.785Z","avatar_url":"https://github.com/duguying.png","language":"C","funding_links":[],"categories":["字符串处理"],"sub_categories":[],"readme":"# pinyin-php #\n\n----------\n\n[![Build Status](https://drone.io/github.com/duguying/pinyin-php/status.png)](https://drone.io/github.com/duguying/pinyin-php/latest) \n[![travis](https://api.travis-ci.org/duguying/pinyin-php.png)](https://travis-ci.org/duguying/pinyin-php)\n\n***pinyin-php*** is a php extension which could translate Chinese character into Chinese PinYin.\n\n## build and install ##\n**linux**\n\nbuild the extension\u003cbr\u003e\n\n```shell\nphpize\nconfigure\nmake\nmake test\n```\n\n## configuration\nadd following into `php.ini`\n\n```\npinyin.chars=/path/to/chars.csv\npinyin.words=/path/to/words.csv\npinyin.locale=\"en_GB.UTF-8\"\t\t[optional]\n```\n\n## usage\n\n```php\n\u003c?php\necho pinyin(\"汉\"),\"\\n\";\necho pinyin(\"わたしわ阿飞, and my English name is Rex Lee. 网名是独孤影！ ^_^。下面是一段多音分词歧义测试，这个人无伤无臭味。\"),\"\\n\";\n?\u003e\n```\n\n# License #\n\nMIT License\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduguying%2Fpinyin-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduguying%2Fpinyin-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduguying%2Fpinyin-php/lists"}