For laravel >= 5.5
composer require dishcheng/yunxinsms:~1.0
php artisan vendor:publish --provider="DishCheng\YunXinSms\YunXinSmsProvider" --tag=yunxinsms
use DishCheng\YunXinSms\YunXinSms;
$params = ['mobile' => 'xxxxxxx', 'templateid' => 'xxxxxxx', 'authCode' => '1111'];
var_dump(YunXinSms::code_post($params));
$params = ['mobiles' => json_encode([xxxxxxx]), 'templateid' => 'xxxxxxx', 'params' => json_encode([xxxx, xxxx, xxxx])];
$response = YunXinSms::notice_post($params);
var_dump($response);