📲 The easiest way to send short message.
- PHP >= 5.6
$ composer require "overtrue/easy-sms"
use Overtrue\EasySms\EasySms;
$config = [
'default' => 'error-log',
'gateways' => [
/*...*/
'error-log' => [
'file' => '/tmp/easy-sms.log',
],
/*...*/
'yun-pian' => [
'api_key' => '824f0ff2f71cab52936a13ede3xxxxx',
],
],
];
$easySms = new EasySms($config);
$easySms->gateway('error-log')->send(19188888888, 'hello world!');
MIT