We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ca202 commit 4675515Copy full SHA for 4675515
1 file changed
README.md
@@ -1,5 +1,5 @@
1
# ThinkPHP-Pinyin
2
-ThinkPHP版 中文转拼音扩展包 只支持ThinkPHP6
+ThinkPHP版 中文转拼音扩展包 支持ThinkPHP `5.1` `6.0`版本
3
4
## 安装
5
```sh
@@ -43,5 +43,23 @@ Pinyin::sentence();
43
44
控制器里 也可以这样写
45
```php
46
-$this->app->pinyin->convert('带着希望去旅行,比到达终点更美好');
+// 5.1
47
+use think\Controller;
48
+
49
+class Index extends Controller
50
+{
51
+ $this->app->pinyin->convert('带着希望去旅行,比到达终点更美好');
52
+}
53
54
+```
55
56
+```php
57
+// 6.0
58
+use app\BaseController
59
60
+class Index extends BaseController
61
62
63
64
65
```
0 commit comments