承接 sarahman/sms-gateway 相关项目开发

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

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

sarahman/sms-gateway

Composer 安装命令:

composer require sarahman/sms-gateway

包简介

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

README 文档

README

SMS Gateway Library

Simple library to interact with some SMS gateways to send SMS.

Installation

Please install this library with composer. Run the following composer command to add this library

composer require previewtechs/sms-gateway

Usage

<?php

use Previewtechs\SMSGateway\Client;
use Previewtechs\SMSGateway\Providers\SSLWireless;
use Previewtechs\SMSGateway\SMS\Message;

require "vendor/autoload.php";

$sslWireless = new SSLWireless("SSL_WIRELESS_USERNAME", "SSL_WIRELESS_PASSWORD", "SSL_WIRELESS_SID");


$client = new Client($sslWireless);

$message = (new Message())
    ->setRecipient("88XXXXXXXXXXX")
    ->setMessage("YOUR MESSAGE");

try {
    $r = $client->send([$message]);
    echo $r->isSuccess() . PHP_EOL;
    print_r($r->getMessages());
} catch (Exception $e) {
    echo $e->getMessage();
}

Supported Providers

For Gateway Providers

If you have your own SMS gateway and you provide API. Please build your own provider and send us pull request. We will add those here too. To build your own provider, please follow src/ProviderInterface.php.

If you have any questions, please feel free to create an Issue or write us at shaharia@previewtechs.com

Contributors

Feel free to contribute in this library. Add your own provider and send us pull request.

Issue

If you have any issue, please write an issue in https://github.com/PreviewTechnologies/sms-gateway/issues

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固