Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmvan/php-pinyin-service
https://github.com/kmvan/php-pinyin-service
Last synced: about 1 month 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T08:55:00.000Z (almost 5 years ago)
- Last Synced: 2024-04-02T12:59:55.576Z (9 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- 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"
]
}
```