2017 © Pedro Peláez
 

library sms-handler

Sms Handlers

image

rrortega/sms-handler

Sms Handlers

  • Wednesday, January 3, 2018
  • by rrortega
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP-based SMS handler lib

This is a SMS Handle lib for sending or receiving SMSs through sereral drivers, (*1)

Using composser

  composer require rrortega/sms-handler

Basic usage example

To send a SMS you can do:, (*2)

``` php <?php, (*3)

require_once "vendor/autoload.php";, (*4)

$configuration=[ "smpp"=>[ "sender" => [
"class" => \rrortega\sms\core\Sender\SmppSender::class, "conf" => [ "host" => "smpp.host.com", "port" => 2875, "user" => "smppuser", "pass" => "smppasss", "timeout" => 10000, ], ] ], "twilio"=>[ "sender" => [
"class" => \rrortega\sms\core\Sender\TwilioSender::class, "conf" => [ "sid" => "sid-xxxxxxxxx", "token" => "token-xxxxxxxxxx ], ] ] ];, (*5)

//using smpp $handler = new \rrortega\sms\core\SmsHandler($configuration['smpp']);, (*6)

//using twilio $handler = new \rrortega\sms\core\SmsHandler($configuration['twilio']);, (*7)

$m = $handler->sendSms("TEST SMPP", 521000000000, "Messaje sent using Smpp Driver"); $m->getStatus(); //SUCCESS or FAILED $m->getId(); // message id, (*8)

The Versions

03/01 2018

dev-master

9999999-dev

Sms Handlers

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-sockets *
  • ext-mbstring *
  • ext-gmp *

 

The Development Requires

by Rolando Rodriguez Ortega

framework sms