smsgatewaycenterphpsdk/smsgatewaycenterapi 问题修复 & 功能扩展

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

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

smsgatewaycenterphpsdk/smsgatewaycenterapi

Composer 安装命令:

composer require smsgatewaycenterphpsdk/smsgatewaycenterapi

包简介

SMS Gateway Center PHP SDK for SMS API

README 文档

README

A Robust API implies to an upgraded functionality of the customer application. At SMSGatewayCenter, we mean to convey Robust API utilizing different approach in which an API should be dealt with independently (just like a whole product itself) to be incorporated to give and expend data from unknown clients.

SMS Gateway Center PHP SDK

Integrage SMS Gateway Center APIs from your application by installing our PHP SDK.

Installation

To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:

curl -sS https://getcomposer.org/installer | php

The SMS Gateway Center API client uses Guzzle to send HTTP messages.

If you just want to get started quickly, you should run the following command:

composer require smsgatewaycenterphpsdk/smsgatewaycenterapi

Usage

Please ensure to use Composer's autoloader in your application to include dependencies automatically. Below examples are assumed that you have included in your file or just follow test documentation.

require_once '../../../../autoload.php';
use SMSGatewayCenterPhpSdk\object\sgc_sms;
$Auth = new \SMSGatewayCenterPhpSdk\object\sgc_auth();
$Auth->setUsername("test");
$Auth->setPassword("*****");

$Sms = new sgc_sms();
$Sms->setOutput("json");
//INITIATE HANDLE
$request = new \SMSGatewayCenterPhpSdk\api\sms\sgc_sms_send($Auth, $Sms);

To send out your first SMS Message using SMS Gateway Center SDK:

//SEND BATCH
$Sms->setSenderId("SMSGAT");
$Sms->setText("Hello  World");
$Sms->setPhone("919999999999");
$Sms->setMsgType("text");
$Sms->setDuplicateCheck("true");
echo $request->batch();

Please ensure to change sender name, text, phone as per your requirement.

Help or Comments?

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固