定制 cjworx/laravel-smsmkt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cjworx/laravel-smsmkt

最新稳定版本:1.0.3

Composer 安装命令:

composer require cjworx/laravel-smsmkt

包简介

A Laravel client for sending SMS via SMSMKT.

README 文档

README

Latest Version on Packagist Total Downloads

This package is a wrapper around SMSMKT client for Laravel.

Installation

You can install the package via composer:

composer require cjworx/laravel-smsmkt

You can publish the config file with:

php artisan vendor:publish --tag="smsmkt-config"

Usage

Add your SMSMKT credentials into .env file

SMSMKT_API_KEY=
SMSMKT_SECRET_KEY=
SMSMKT_OTP_PROJECT_KEY=
SMSMKT_SENDER_NAME=

Example of basic usage

<?php

use CJWORX\LaravelSMSMKT\SMSMKTClient;

// Send SMS
SMSMKTClient::send('0811111111', 'Hello World!');

// Send OTP
$token = SMSMKTClient::sendOTP('0811111111');

// Verify OTP
$verified = SMSMKTClient::verifyOTP($token, '123456');

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-12