sinbadxiii/sms-api-php

There is no license information available for the latest version (dev-master) of this package.

dev-master 2019-04-24 06:33 UTC

This package is auto-updated.

Last update: 2024-11-12 14:14:10 UTC


README

Library Sms Sender

Gateway List:

  • SemySMS

Getting Started

Requirements

To use this component, you need at least:

  • Composer
  • PHP >= 5.5

NOTE: Support for legacy PHP versions (down to 7.0) is provided on a best-effort basis.

Installing

Composer

$ php composer require sinbadxiii/sms-api-php

or create the composer.json file as follows:

{
    "require": {
        "sinbadxiii/sms-api-php": "dev-master"
    }
}

Use

Example for SemySMS Gateway


$authParam = [
    'token'  => 'xxxxxxx',
    'device' => 'yyyy'
];

$smsGatawey = new \Sinbadxiii\Gateway\GatewaySemySMS(
                                  $authParam
                              );

$sms = new \Sinbadxiii\SMS($smsGatawey);

$message = "Hello! How are you do?";
$phone   = "+7xxxxxxxxx";

$sms->send($message, $phone);