kmvan/pinyin-service

INN STUDIO 拼音服务。

1.0.1 2020-02-28 08:54 UTC

This package is auto-updated.

Last update: 2024-09-28 19:42:11 UTC


README

  • GPL-3.0

安装

  • $ composer require kmvan/pinyin-service

使用方法

  • $ php -S localhost:8000 -t ./

然后

curl --header "Content-Type: application/json" \
--request POST \
--data '["你好","我好","大家好"]' \
https://:8000/
// output json
{
    "你好": [
        "ni3",
        "hao3"
    ],
    "我好": [
        "wo3",
        "hao3"
    ],
    "大家好": [
        "da4",
        "jia1",
        "hao3"
    ]
}