- GPL-3.0
$ composer require kmvan/pinyin-service
$ php -S localhost:8000 -t ./
And
curl --header "Content-Type: application/json" \
--request POST \
--data '["你好","我好","大家好"]' \
http://localhost:8000/
// output json
{
"你好": [
"ni3",
"hao3"
],
"我好": [
"wo3",
"hao3"
],
"大家好": [
"da4",
"jia1",
"hao3"
]
}