aminembarki/smsadapter 问题修复 & 功能扩展

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

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

aminembarki/smsadapter

最新稳定版本:0.1.1

Composer 安装命令:

composer require aminembarki/smsadapter

包简介

PHP5 library that provides a sms abstraction layer

README 文档

README

SmsAdapter is a PHP5 library that provides a Sms providers abstraction layer.

Why use SmsAdapter?

Imagine you have to send a lot of sms to multiple destination in a PHP project. Lets see how to take this situation in your advantage using SmsAdapter.

The sms abstraction layer permits you to develop your application without the need to adapt your code for every sms destination & provide.

Another advantage of this is the possibility to update the provider api without any impact on the code . In example, if your project grows up very fast and if your sms provider reaches its limits, you can easily move to any other provider.

Try it!

Installation

Development version:

php composer.phar require aminembarki/smsadapter:dev-master

Setup your Smsadapter

Following an example with the sms adapter. To setup other adapters, look up the Adapters folder

<?php

use Smsadapter\Sms;
use Smsadapter\Adapter\Twilio As TwilioAdapter ;

$sms = new Sms();
$sms->setSmsAdapter(new TwilioAdapter());
$sms->authenticate(array('api_key'=>'xxxxxxxxxxx','api_secret'=>'xxxxxxxxxxx'));
$sms->sendMessage('xxxxxxxxxxx','xxxxxxxxxxx',"message sent from sms adapter Twilio Provider ");

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固