承接 aminembarki/smsadapter 相关项目开发

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

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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