PHP code example of katsana / silverstreet

1. Go to this page and download the library: Download katsana/silverstreet library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

katsana / silverstreet example snippets




use Silverstreet\Client;

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


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



use Silverstreet\Client;

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

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

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

echo $balance; // 400