mv/free-sms-api-bundle
最新稳定版本:1.0.0
Composer 安装命令:
composer require mv/free-sms-api-bundle
包简介
Bundle SF2 that use library api free mobile sending SMS
README 文档
README
This bundle is for sending notification to your Free Mobile (Require Free Mobile account with api key)
Install
composer.phar require mv/free-sms-api-bundle
Configuration
Add to your AppKernel
$bundles[] = new Mv\FreeSmsApiBundle\MvFreeSmsApiBundle();
Add to config.yml
mv_free_sms_api: users: phpmike: free_user_id: YOUR USER ID FREE MOBILE free_user_api_key: YOUR API KEY FREE MOBILE other: free_user_id: OTHER USER ID FREE MOBILE free_user_api_key: OTHER API KEY FREE MOBILE
Examples
$this->get('mv_free_sms_api.sender.phpmike') ->addMessage('Test de ce bundle :-)') ->send();
// Something append in your script $this->get('mv_free_sms_api.sender.phpmike')->addMessage('There is something wrong with that!'); // Something else append in your script $this->get('mv_free_sms_api.sender.phpmike')->addMessage('There is something wrong with that other!'); $this->get('mv_free_sms_api.sender.other')->addMessage('There is something wrong with that other!'); // Same as $this->get('mv_free_sms_api.sender.all')->addMessage('There is something wrong with that other!'); // Same as $this->get('mv_free_sms_api.sender.all')->addMessageTo('There is something wrong with that other!', array('phpmike', 'other'); // Send messages $this->get('mv_free_sms_api.sender.all')->send();
Be carreful, this throw "Mv\FreeSmsApi\Exception\FailedException" when something went wrong.
Enjoy it!
To be continued...
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL
- 更新时间: 2015-07-27