boskee/esendex-bundle
Composer 安装命令:
composer require boskee/esendex-bundle
包简介
Boskee Esendex Bundle for Symfony
README 文档
README
By boskee
This bundle enables you to use Esendex SDK as a service in your Symfony project.
For more information see the esendex/sdk repository and the Esendex REST API.
Requirements
- Symfony
- Dependencies:
Esendex SDK
Installation
Add in your composer.json
{ "require": { "boskee/esendex-bundle": "dev-master" } }
Install the bundle
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update boskee/esendex-bundle
Composer will install the bundle to your project's vendor/boskee directory.
Enable the bundle via the kernel
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Boskee\EsendexBundle\BoskeeEsendexBundle(), ); }
Configuration
config.yml
boskee_esendex: account_reference: "..." username: "..." password: "..."
Usage
After installation and configuration, the service can be directly referenced from within your controllers.
<?php $esendex = $this->get('boskee_esendex.dispatcher'); // Create a Text Message $message = new Boskee\EsendexBundle\Model\TextMessage(); $message->setOriginator('Boskee'); $message->setRecipient('01234567890'); $message->setBody('Test message'); $response = $esendex->send($message->prepare());
License
This bundle is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
统计信息
- 总下载量: 18.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-10-31