coredevsolutions/laravel-smartconnect

通过 Smart Connect SMS API 发送短信的 Laravel 封装。

dev-main 2021-07-27 03:49 UTC

This package is auto-updated.

Last update: 2024-09-27 11:08:36 UTC


README

概览

通过 Smart Connect SMS API 发送短信的 Laravel 封装。

要求

  • Laravel 5.5+
  • PHP 7+
  • Guzzle 6+
  • Carbon 1.0+

安装

您可以通过 composer 安装 laravel-smartconnect 包。

composer require coredevsolutions/laravel-smartconnect

配置

在您的 config/app.php 文件中注册提供者和别名。

'providers' => [
    CoreDev\LaravelSmartConnect\SmartServiceProvider::class,
],

'aliases' => [
    'Smart' => CoreDev\LaravelSmartConnect\Smart::class,
],

使用方法

您可以使用它如下

use Smart;

Smart::send('phone_number', 'message', 'username', 'password');