2017 © Pedro Peláez
 

library free-sms-api-bundle

Bundle SF2 that use library api free mobile sending SMS

image

mv/free-sms-api-bundle

Bundle SF2 that use library api free mobile sending SMS

  • Tuesday, September 27, 2016
  • by phpmike
  • Repository
  • 2 Watchers
  • 1 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

MvFreeSmsApiBundle

This bundle is for sending notification to your Free Mobile (Require Free Mobile account with api key), (*1)

SensioLabsInsight, (*2)

Install

composer.phar require mv/free-sms-api-bundle

Configuration

Add to your AppKernel, (*3)

$bundles[] = new Mv\FreeSmsApiBundle\MvFreeSmsApiBundle();

Add to config.yml, (*4)

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., (*5)

Enjoy it!, (*6)

To be continued..., (*7)

The Versions

27/09 2016

dev-master

9999999-dev https://github.com/phpmike/FreeSmsApiBundle

Bundle SF2 that use library api free mobile sending SMS

  Sources   Download

GPL-3.0

The Requires

 

symfony2 bundle sms mobile free sms free sms free mobile

26/07 2015

1.0.0

1.0.0.0 https://github.com/phpmike/FreeSmsApiBundle

Bundle SF2 that use library api free mobile sending SMS

  Sources   Download

GPL

The Requires

 

symfony2 bundle sms mobile free sms free sms free mobile