dev-master
9999999-dev https://github.com/boskee/esendex-bundleBoskee Esendex Bundle for Symfony
MIT
The Requires
- php >=5.3.0
- esendex/sdk v1.0.3
bundle symfony sms esendex boskee
Boskee Esendex Bundle for Symfony
By boskee, (*1)
This bundle enables you to use Esendex SDK
as a service in your Symfony project., (*3)
For more information see the esendex/sdk repository and the Esendex REST API., (*4)
{ "require": { "boskee/esendex-bundle": "dev-master" } }
``` bash $ curl -s http://getcomposer.org/installer | php $ php composer.phar update boskee/esendex-bundle, (*5)
Composer will install the bundle to your project's `vendor/boskee` directory. ### Enable the bundle via the kernel ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Boskee\EsendexBundle\BoskeeEsendexBundle(), ); }
boskee_esendex: account_reference: "..." username: "..." password: "..."
After installation and configuration, the service can be directly referenced from within your controllers., (*6)
<?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());
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., (*7)
Boskee Esendex Bundle for Symfony
MIT
bundle symfony sms esendex boskee