ianchadwick/dynmark
Composer 安装命令:
composer require ianchadwick/dynmark
包简介
Send SMS using Dynmark - http://www.dynmark.com/
README 文档
README
Dynmark are leading providers of SMS and SMS intelligence services allowing you to make your SMS messaging smart.
This package allows you to send text messages using their API.See website
Requirements
PHP 5.4+
Installation using Composer
Add ianchadwick/dynmark to the require part of your composer.json file
"require": {
"ianchadwick/dynmark": "dev-master"
}
Then update your project with composer
composer update
Basic Usage
use Dynmark\Dynmark;
use Dynmark\Commands\Sms\Send;
class MyClass {
public function sendSms()
{
// init the Dynmark helper
$dynmark = new Dynmark('myusername', 'mypassword');
// create the command
$command = new Send($dynmark);
// set the text details
$command->setFrom('Ian')
->setPhone('0770000000')
->setText('Hello there!');
// send the text
$response = $command->fire();
}
}
统计信息
- 总下载量: 60
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-22