lawyi/baimifan

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lawyi/baimifan

1.0.0 2016-04-28 14:42 UTC

This package is auto-updated.

Last update: 2025-12-04 12:22:35 UTC


README

...

bmfsms

  • 支持 baichuan 发送短信
$code   = rand(1000, 9999);
$time   = 5;
$name   = ''; // 尾巴
$mobile = '18267xxxxxx';

$config = [
    'appkey'       => '',
    'secret'       => '',
    'template_id'  => '57', // 模版ID
    'signature_id' => '293', // 签名ID
    'context'      => [  // 模版变量
        'code' => $code,
        'time' => $time,
        'name' => $name,
    ]
];

$res = \Baimifan\Sms::baichuan($config)->to($mobile)->send();