2017 © Pedro Peláez
 

library phalcon-sms-service

Service for sending SMS

image

didiroesmana/phalcon-sms-service

Service for sending SMS

  • Friday, December 16, 2016
  • by didiroesmana
  • Repository
  • 2 Watchers
  • 5 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Phalcon SMS Service

Service Adapter for Multiple SMS Service such as Nexmo , Clickatell., (*1)

TO DO

  • [x] Add Nexmo
  • [x] Add Clickatell
  • [x] Clickatell batch send
  • [x] Changeable SMS Provider
  • [ ] Error Handling
  • [ ] Unit Test

How To

  • add this to your config, (*2)

        'smsService' => [
            'use' => 'Nexmo',
            'Nexmo' => [
                    'api_key' => env('NEXMO_API_KEY','YOUR NEXMO API KEY'),
                    'api_secret' => env('NEXMO_API_SECRET','API_SECRET'),
                    'endpoint' => 'https://rest.nexmo.com/sms/json',
            ],
            'Clickatell' => [
                'token' => env('CLICKATELL_TOKEN', 'YOUR CLICKATELL TOKEN'),
                'endpoint' => 'https://platform.clickatell.com/messages',
            ],
        ],
    
  • add Sms service to your DI , php $di->setShared('sms', \Didiroesmana\SMSService\Service::class);
  • Send SMS, (*3)

    • get sms service from DI
    • and send it, (*4)

          // first parameter is sender
          // second is the recipient number
          // third is the message
          dump($this->sms->send('DDGEMES','69696969696969','ANU DD GEMESH'));
      
  • Providers, (*5)

    • Nexmo
    • Clickatell
      • to send batch sms , create array of number and put it in second arguments. php dump($this->sms->send('DDGEMES',['+62xxxx','+62xxxxx','+1xxxxxx' ...]));
  • Change Provider
$this->sms->changeProvider('Clickatell')->send(...);

The Versions

16/12 2016

dev-master

9999999-dev https://github.com/didiroesmana/phalcon-sms-service

Service for sending SMS

  Sources   Download

MIT

The Requires

 

phalcon phalcon service phalcon sms gateway

16/12 2016

v1.0.2

1.0.2.0 https://github.com/didiroesmana/phalcon-sms-service

Service for sending SMS

  Sources   Download

MIT

The Requires

 

phalcon phalcon service phalcon sms gateway

16/12 2016

dev-changeable-provider

dev-changeable-provider https://github.com/didiroesmana/phalcon-sms-service

Service for sending SMS

  Sources   Download

MIT

The Requires

 

phalcon phalcon service phalcon sms gateway

15/12 2016

v1.0.1

1.0.1.0 https://github.com/didiroesmana/phalcon-sms-service

Service for sending SMS

  Sources   Download

MIT

The Requires

 

phalcon phalcon service phalcon sms gateway

15/12 2016

v1.0.0

1.0.0.0 https://github.com/didiroesmana/phalcon-sms-service

Service for sending SMS

  Sources   Download

MIT

The Requires

 

phalcon phalcon service phalcon sms gateway