承接 gardeshi/sms-driver-rest-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gardeshi/sms-driver-rest-api

Composer 安装命令:

composer require gardeshi/sms-driver-rest-api

包简介

Rest Api Sms driver created to work with more than one sms service provider with same interface.

README 文档

README

Rest Api Sms driver created to work with more than one sms service provider with same interface.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist aminkt/sms-driver-rest-api "*"

or add

"aminkt/sms-driver-rest-api": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$sms = new \aminkt\sms\Sms();
// Ingnore below line if you don't want change default driver.
$sms->setDrviver('\your\driver\Class');
$sms->setLoginData([`LOGIN_DATA`]);
$sms->sendSms([
    'message'=>'Your test message.',
    'numbers'=>['09120813856', '+989121234567']
]);

LOGIN_DATA depends on what driver is used to send sms, there is a list of supported drivers is blew

User your own driver

If you want you can simply write your own driver and attach it to this library.

And if you want you can publish it in this library by your own name.

If you want create your own driver please flow below steps:

  1. Create your class and use psr-7 namespcae.
  2. Extend your class from aminkt\sms\drivers\AbstracDriver
  3. Implement your codes.
  4. Attach your driver to library as described before
  5. Publish your code in sms-driver-rest-api library

List of drivers

List of driver that published and avilable right now.

Driver namenamespacecreatedBypublish date
Pardad\aminkt\sms\drivers\PardadAmin Keshavarz17 / 8 /2017
KaveNegar\aminkt\sms\drivers\KaveNegarmr-exception5 / 2 /2018

Login Data for Pardad

parameterstypedescription
usernamestringusername for auth
passwordstringpassword for auth

Login Data for KaveNegar

parameterstypedescription
tokenstringtoken given in cpanel

Be aware use of this library and its driver is alowed for all but you should keep recources and authors names.

Help us to improve

If you create your own driver we become so happy if you pulblish it in our library.

Amin Keshavarz

Mr-Exception

[Mail to Aminn Keshavarz](mailto: ak_1596@yahoo.com)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2020-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固