1.安装 composer require xiaoyongbrother/hello-yii2:"1.1.0" 2.使用 <?= \xiaoyongbrother\hello\Hello::sayHello()?>