pixelvide/laravel-sms-gateway 问题修复 & 功能扩展

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

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

pixelvide/laravel-sms-gateway

最新稳定版本:2.0.0

Composer 安装命令:

composer require pixelvide/laravel-sms-gateway

包简介

Pixelvide SMS Gateway

README 文档

README

This package allows us to send sms to SMS Gateway which will process and send message using sms service providers.

Installation

requires this package with composer:

composer require pixelvide/laravel-sms-gateway

Add following keys in .env file

key value
SMS_GATEWAY_ENDPOINT sms gateway url

After installing SMS Gateway, you can use it to send sms.

  1. Using SMS Gateway.
$sms = new \Pixelvide\SMSGateway\SMS();
$sms->setTemplateId('01234567890');
$sms->addRecipient('1234567890');
$sms->addSubstitute('var1', 'Team'); # Optional

$smsGw = new \Pixelvide\SMSGateway\SMSGateway();
$smsGw->send($sms)
$sms = new \Pixelvide\SMSGateway\SMS();
$sms
  ->setTemplateId('01234567890')
  ->addRecipient('1234567890');

$smsGw = new \Pixelvide\SMSGateway\SMSGateway();
$smsGw->send($sms)

Send SMS to multiple recipient.

$sms = new \Pixelvide\SMSGateway\SMS();
$sms
  ->setTemplateId('01234567890')
  ->addRecipient('1234567890')
  ->addRecipient('2345678901');

$smsGw = new \Pixelvide\SMSGateway\SMSGateway();
$smsGw->send($sms)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-02-05