nickmel/laravel-smsto 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

nickmel/laravel-smsto

Composer 安装命令:

composer require nickmel/laravel-smsto

包简介

A Laravel package to hook up to the SMS.to REST API

README 文档

README

Latest Stable Version Build Status License Total Downloads

SMS.to library for Laravel 5.8

Laravel package to provide integration with SMS.to REST API. Visit https://sms.to/ to create an account and obtain API credentials.

Installation

Install this package with composer:

composer require nickmel/laravel-smsto

Add the provider to the providers array in config/app.php file

'Nickmel/SMSTo/SMSToServiceProvider',

and the facade in the aliases array in config/app.php file

'SMSTo' => 'Nickmel/SMSTo/SMSToFacade',

Copy the config files for the API

php artisan vendor:publish --tag="laravel-sms-to" 

Usage

To configure the API, either set the variables in the .env file or edit the published config/laravel-sms-to.php file directly.

Get Account Balance
SMSTo::getBalance();
Send single SMS
$messages = [
    [
        'to' => '+357xxxxxxxx',
        'message' => 'An SMS message'
    ]
];

$senderId = 'SENDERID';

SMSTo::sendSingle($messages, $senderId);
Send multiple SMS
$recipients = ['+357xxxxxxxx', '+357yyyyyyyy'];

$message = 'An SMS message';

$senderId = 'SENDERID';

SMSTo::sendMultiple($message, $recipients, $senderId);
Using the Notification channel
Notifications in Laravel can be send to custom channels.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固