mv/free-sms-api-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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)

SensioLabsInsight

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

GitHub 信息

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

其他信息

  • 授权协议: GPL
  • 更新时间: 2015-07-27