Welcome to the easy-sms wiki!
$ composer require "overtrue/easy-sms"
$config = [ 'default' => 'error-log', 'gateways' => [ /*...*/ 'error-log' => [ 'file' => '/tmp/easy-sms.log', ], /*...*/ 'yun-pian' => [ 'api_key' => '824f0ff2f71cab52936a13ede3xxxxx', ], /*...*/ 'GATEWAY_NAME' => [GATEWAY_CONFIG] //... ], ];
use Overtrue\EasySms\EasySms; $config = ...; $easySms = new EasySms($config); $easySms->gateway('GATEWAY_NAME')->send(19188888888, 'hello world!');
There was an error while loading. Please reload this page.