hsvisus/sms

一个短信通知应用接口

v1.0.2 2021-08-28 03:32 UTC

This package is auto-updated.

Last update: 2024-04-28 09:17:07 UTC


README

短信通知包

  • 发布php artisan vendor:publish --provider="Hsvisus\Sms\SmsProvider"
    /**
     * 发送通知短信
     * @param string $phone
     * @param array $code
     * @param string $templ
     * @param string $content
     * @return bool
     */
    public function inform(string $phone, array $code, string $templ, string $content='')
   /**
     * 发送验证码
     * @param string $phone
     * @param string $content
     * @return bool
     * @throws \Overtrue\EasySms\Exceptions\InvalidArgumentException
     */
    public function code(string $phone, string $content='')
     /**
     * 检验证码
     * @param string $phone
     * @param string $code
     * @return bool
     */
    public function verify(string $phone, string $code)