{"repo":"overtrue/laravel-pinyin","free":true,"listed":false,"github":"https://github.com/overtrue/laravel-pinyin","clone":"git clone https://github.com/overtrue/laravel-pinyin.git","description":":cn: Chinese to Pinyin translator for Laravel","language":"PHP","stars":530,"topics":["chinese","laravel","pinyin","chinese-to-pinyin"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Laravel-Pinyin Chinese to Pinyin translator for Laravel based on overtrue/pinyin. Install The auto-discovery feature will handle these two steps for you. Add the following line to the section providers of config/app.php : as optional, you can use facade: Usage you can get the instance of Overtrue\\Pinyin\\Pinyin from app container: There are more convenient functions: function method ------------- --------------------------------------------------- pinyin() app('pinyin')- convert() pinyin abbr() app('pinyin')- abbr() pinyin permalink app('pinyin')- permalink() pinyin sentence app('pinyin')- sentence() Using facade: About overtrue/pinyin specific configuration and use, refer to: overtrue/pinyin Performance Strategies (New in 6.0) Laravel-pinyin 6.0 includes support for the new performance optimization strategies introduced in overtrue/pinyin 6.0: :heart: Sponsor me 如果你喜欢我的项目并想支持它，点击这里 :heart: Project supported by JetBrains Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects. PHP 扩展包开发 想知道如何从零开始构建 PHP 扩展包？ 请关注我的实战课程，我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》 License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/overtrue","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/overtrue/laravel-pinyin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}