2017 © Pedro Peláez
 

symfony-bundle smsapi-bundle

Symfony 2 Bundle for SMSApi PHP Client library.

image

kch/smsapi-bundle

Symfony 2 Bundle for SMSApi PHP Client library.

  • Wednesday, June 1, 2016
  • by KredytyChwilowkiProgrammer
  • Repository
  • 4 Watchers
  • 1 Stars
  • 5,362 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

kch/smsapi-bundle

Symfony 2 Bundle for SMSApi PHP Client library., (*1)

Symfony 2 Bundle dla biblioteki SMSApi PHP Client., (*2)

Installation:

composer require kch/smsapi-bundle, (*3)

Configuration - config.yml:

kch_sms_api:
    clients:
        default:
            client_login: TEST
            client_password_hash: TEST

Usage - sending one SMS:

Based on original library code: https://github.com/smsapi/smsapi-php-client/wiki/Examples, (*4)

$smsFactory = $this->get('kch_sms_api.sms_factory.default');

try {
    $actionSend = $smsFactory->actionSend();

    $actionSend->setTo('600xxxxxx');
    $actionSend->setText('Hello World!!');
    $actionSend->setSender('Info'); //Pole nadawcy, lub typ wiadomości: 'ECO', '2Way'

    $response = $actionSend->execute();

    foreach ($response->getList() as $status) {
        echo $status->getNumber() . ' ' . $status->getPoints() . ' ' . $status->getStatus();
    }
} catch (SmsapiException $exception) {
    echo 'ERROR: ' . $exception->getMessage();
}

The Versions

01/06 2016

dev-master

9999999-dev

Symfony 2 Bundle for SMSApi PHP Client library.

  Sources   Download

MIT

The Requires

 

by Avatar KredytyChwilowkiProgrammer

bundle sms mms vms

01/06 2016

1.6.2

1.6.2.0

Symfony 2 Bundle for SMSApi PHP Client library.

  Sources   Download

MIT

The Requires

 

by Avatar KredytyChwilowkiProgrammer

bundle sms mms vms

19/04 2016

v1.6.1

1.6.1.0

Symfony 2 Bundle for SMSApi PHP Client library.

  Sources   Download

MIT

The Requires

 

by Avatar KredytyChwilowkiProgrammer

bundle sms mms vms

15/10 2015

v1.6.0

1.6.0.0

Symfony 2 Bundle for SMSApi PHP Client library.

  Sources   Download

The Requires

 

bundle sms mms vms