https://github.com/kmvan/php-pinyin-service
https://github.com/kmvan/php-pinyin-service
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kmvan/php-pinyin-service
- Owner: kmvan
- License: gpl-3.0
- Created: 2020-02-28T08:48:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T08:55:00.000Z (over 6 years ago)
- Last Synced: 2026-01-01T17:44:08.338Z (6 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# License
- GPL-3.0
# Install
- `$ composer require kmvan/pinyin-service`
# Usage
- `$ php -S localhost:8000 -t ./`
And
```sh
curl --header "Content-Type: application/json" \
--request POST \
--data '["你好","我好","大家好"]' \
http://localhost:8000/
```
```json
// output json
{
"你好": [
"ni3",
"hao3"
],
"我好": [
"wo3",
"hao3"
],
"大家好": [
"da4",
"jia1",
"hao3"
]
}
```