kmvan/pinyin-service

INN STUDIO pinyin service.

1.0.1 2020-02-28 08:54 UTC

This package is auto-updated.

Last update: 2024-04-28 18:49:10 UTC


README

  • GPL-3.0

Install

  • $ composer require kmvan/pinyin-service

Usage

  • $ 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"
    ]
}