2017 © Pedro PelĂĄez
 

library gsms-bundle

Symfony2 bundle for gsms.lt provided services

image

evp/gsms-bundle

Symfony2 bundle for gsms.lt provided services

  • Wednesday, June 12, 2013
  • by gsms.lt
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,881 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

GsmsBundle

What is GsmsBundle?

GsmsBundle is a small bundle that can serve as a bridge between your Symfony framework and the GsmsPHPClient, (*1)

Sections

Requirements

  • An active gsms.lt account

Installation

  • Composer: ``` bash composer require evp/gsms-bundle

* Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( //... your existing bundles here new Evp\Bundle\GsmsBundle\EvpGsmsBundle(), ); }
  • Configure your app/config/config.yml
evp_gsms:
  credentials:
    username: your_username
    password: your_password
  from: my_phone_number
  callback_uri: "http://example.com/callback"

Don't forget to replace your_username, your_password other parameters with the actual values. from and callback_uri parameters are optional., (*2)

That's it, you are now ready to use GsmsBundle., (*3)

Code samples

Once the bundle is installed the dependency container will contain evp_gsms.client service, which can be used to access the methods of GsmsPHPClient, (*4)

Use the client to send your first sms, (*5)

$response = $client->send('Your telephone number', 'Receiver telephone number', 'message');

And get the response from the server, (*6)

if ($response->isSuccessful()) {
   // Do something when the sms has been sent
} else {
   // Do something when the sms has not been sent
   $lastResponse = $client->getLastResponse();
}

Please refer to the Evp_Gsms_Client documentation for additional information., (*7)

Contacts

If you have any further questions feel free to contact us:, (*8)

"Paysera LT", UAB
Pilaitės pr. 16 LT-04352 Vilnius
El. paĆĄtas: pagalba@gsms.lt
Tel. +370 (5) 2 03 27 19
Faksas +370 (5) 2 63 91 79, (*9)

The Versions

12/06 2013

dev-master

9999999-dev

Symfony2 bundle for gsms.lt provided services

  Sources   Download

The Requires