2017 © Pedro Peláez
 

library sms-gateway

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

image

sarahman/sms-gateway

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

  • Tuesday, June 26, 2018
  • by sarahman
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SMS Gateway Library

Simple library to interact with some SMS gateways to send SMS., (*1)

Installation

Please install this library with composer. Run the following composer command to add this library, (*2)

composer require previewtechs/sms-gateway

Usage

<?php

use Previewtechs\SMSGateway\Client;
use Previewtechs\SMSGateway\Providers\SSLWireless;
use Previewtechs\SMSGateway\SMS\Message;

require "vendor/autoload.php";

$sslWireless = new SSLWireless("SSL_WIRELESS_USERNAME", "SSL_WIRELESS_PASSWORD", "SSL_WIRELESS_SID");


$client = new Client($sslWireless);

$message = (new Message())
    ->setRecipient("88XXXXXXXXXXX")
    ->setMessage("YOUR MESSAGE");

try {
    $r = $client->send([$message]);
    echo $r->isSuccess() . PHP_EOL;
    print_r($r->getMessages());
} catch (Exception $e) {
    echo $e->getMessage();
}

Supported Providers

For Gateway Providers

If you have your own SMS gateway and you provide API. Please build your own provider and send us pull request. We will add those here too. To build your own provider, please follow src/ProviderInterface.php., (*3)

If you have any questions, please feel free to create an Issue or write us at shaharia@previewtechs.com, (*4)

Contributors

Feel free to contribute in this library. Add your own provider and send us pull request., (*5)

Issue

If you have any issue, please write an issue in https://github.com/PreviewTechnologies/sms-gateway/issues, (*6)

The Versions

26/06 2018

dev-master

9999999-dev

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

  Sources   Download

MIT

The Requires

 

by Syed Abidur Rahman

26/06 2018

dev-bug-fix

dev-bug-fix

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

  Sources   Download

MIT

The Requires

 

18/03 2018

v1.0

1.0.0.0

SMS Gateway library in PHP. Multiple providers in one library. Happy SMS'ing!

  Sources   Download

MIT

The Requires