2017 © Pedro Peláez
 

library silverstreet

Silverstreet API Client for PHP

image

katsana/silverstreet

Silverstreet API Client for PHP

  • Monday, April 9, 2018
  • by crynobone
  • Repository
  • 3 Watchers
  • 3 Stars
  • 5,237 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

Silverstreet API Client for PHP

tests Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Installation

To install through composer, simply put the following in your composer.json file:, (*2)

{
    "require": {
        "katsana/silverstreet": "^3.0",
        "php-http/guzzle6-adapter": "^2.0"
    }
}

HTTP Adapter

Instead of utilizing php-http/guzzle6-adapter you might want to use any other adapter that implements php-http/client-implementation. Check Clients & Adapters for PHP-HTTP., (*3)

Usages

Creating Silverstreet Client

You can start by creating a client by using the following code (which uses php-http/guzzle6-adapter):, (*4)

<?php

use Silverstreet\Client;

$http = Laravie\Codex\Discovery::client();


$silverstreet = new Client($http, 'your-api-username', 'your-api-password');

You could also use php-http/discovery to automatically pick available adapter installed via composer:, (*5)

<?php

use Silverstreet\Client;

$silverstreet = Client::make('your-api-username', 'your-api-password');

, (*6)

Sending Text Messages

You can send text messages by running the following code., (*7)

$silverstreet->uses('Message')
    ->text('Hello world', '+60123456789', $sender);

Checking Credit Balance

You can request for available balance by running the following code., (*8)

$balance = $silverstreet->uses('Credit')->available();

echo $balance; // 400

The Versions

09/04 2018

dev-master

9999999-dev

Silverstreet API Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

09/04 2018

v2.0.0

2.0.0.0

Silverstreet API Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

14/03 2018

1.0.x-dev

1.0.9999999.9999999-dev

Silverstreet API Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

13/03 2018

1.1.x-dev

1.1.9999999.9999999-dev

Silverstreet API Client for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

12/03 2018