2017 © Pedro Peláez
 

library key-sms-sdk

PHP SDK for KeySMS

image

fredriktid/key-sms-sdk

PHP SDK for KeySMS

  • Wednesday, May 30, 2018
  • by fredriktid
  • Repository
  • 2 Watchers
  • 2 Stars
  • 577 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 6 Versions
  • 72 % Grown

The README.md

PHP SDK for KeySMS

Latest Version Software License Build Status Scrutinizer Code Quality Total Downloads, (*1)

A simple PHP SDK for KeySMS., (*2)

Requirements

This SDK has a dependency on the virtual package php-http/client-implementation which requires to you install a compatible adapter. Any such adapter will be automatically detected. You might for instance want to use Guzzle., (*3)

composer require php-http/guzzle6-adapter

Install

composer require fredriktid/key-sms-sdk

Usage

<?php

use \FTidemann\KeySms;

$auth = new KeySms\Auth('username', 'apiKey');

$message = new KeySms\Sms\Message();
$message->setContent(new KeySms\Sms\Content('Your message'));
$message->addRecipient(new KeySms\Sms\Recipient(55555555));
$message->addRecipient(new KeySms\Sms\Recipient(66666666));

$client= new KeySms\Client($auth);
$client->setMessage($message);
$client->setHttpClient(new \Http\Adapter\Guzzle6\Client()); // optional
$client->sendSms();

The Versions

19/02 2017

v0.1.1

0.1.1.0 https://github.com/fredriktid/key-sms-sdk

PHP SDK for KeySMS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fredrik Tidemann

17/02 2017

v0.1.0

0.1.0.0 https://github.com/fredriktid/key-sms-sdk

PHP SDK for KeySMS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fredrik Tidemann