Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itxq/pinyin
简单的汉语转拼音类
https://github.com/itxq/pinyin
Last synced: about 2 months ago
JSON representation
简单的汉语转拼音类
- Host: GitHub
- URL: https://github.com/itxq/pinyin
- Owner: itxq
- License: apache-2.0
- Created: 2020-05-18T06:22:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T06:45:35.000Z (over 4 years ago)
- Last Synced: 2024-07-08T01:26:09.613Z (6 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
简单的汉语转拼音类
===============[![PHP Version](https://img.shields.io/badge/php-%3E%3D7.1-8892BF.svg)](http://www.php.net/)
[![Latest Stable Version](https://poser.pugx.org/itxq/pinyin/version)](https://packagist.org/packages/itxq/pinyin)
[![Total Downloads](https://poser.pugx.org/itxq/pinyin/downloads)](https://packagist.org/packages/itxq/pinyin)
[![Latest Unstable Version](https://poser.pugx.org/itxq/pinyin/v/unstable)](//packagist.org/packages/itxq/pinyin)
[![License](https://poser.pugx.org/itxq/pinyin/license)](https://packagist.org/packages/itxq/pinyin)
[![composer.lock available](https://poser.pugx.org/itxq/pinyin/composerlock)](https://packagist.org/packages/itxq/pinyin)
### 开源地址:[【GitHub:】https://github.com/itxq/pinyin](https://github.com/itxq/pinyin)
[【码云:】https://gitee.com/itxq/pinyin](https://github.com/itxq/pinyin)
### 扩展安装:
+ 方法一:composer命令 `composer require itxq/pinyin`
+ 方法二:直接下载压缩包,然后进入项目中执行 composer命令 `composer update` 来生成自动加载文件
### 引用扩展:
+ 当你的项目不支持composer自动加载时,可以使用以下方式来引用该扩展包
```
// 引入扩展(具体路径请根据你的目录结构自行修改)
require_once __DIR__ . '/vendor/autoload.php';
```### 使用示例:
```
turn('中文 带空格');// 仅输出拼音首字母
echo PinYin::make()->turnFirst('中文 带空格');
```