定制 donwel-systems/clickatell 二次开发

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

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

donwel-systems/clickatell

Composer 安装命令:

composer require donwel-systems/clickatell

包简介

A package to send sms via Clickatell Sms Gateway

README 文档

README

PhP Package for sennding sms via Clickatell on both the old Communicator Central (http://api.clickatell.com) and the new Clickatell Platorm (https://platform.clickatell.com) using the https(s) protocol The Rest API for the new Clickatell Platform is not supported in this Package #Usage

  1. Run composer require donwel-systems/clickatell
  2. Run php artisan vendor:publish
  3. Choose the DonwelSystems\Clickatell\ClickatellServiceProvider and hit enter.
  4. Edit the config/clickatell.php file accordingly
  5. Edit config/app.php and add the ClickatellServiceProvider and 'ClickatellFacade' classes to the providers and aliases arrays
    'providers' => [
	.....
	DonwelSystems\Clickatell\ClickatellServiceProvider::class
	]

'aliases' => [
    ...
    'Clickatell' => DonwelSystems\Clickatell\Facades\ClickatellFacade::class,
  1. In your code, to send an Sms use
Clickatell::send($to,$message)

The Clickatell::send method returns an associative array i) If the message is successfully sent, the array

 ["result"=>'success', "code"=>'$code'];

is returned; where $code contains the unqiue message ID from clickatell

ii) If the message is no successfully sent, or an error occurs, the array

 ["result"=>'error', "code"=>'$code'];

is returned; where $code contains the error message.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固