PHP code example of sms77 / api

1. Go to this page and download the library: Download sms77/api 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/ */

    

sms77 / api example snippets


use Seven\Api\Client;
use Seven\Api\Params\SmsParams;
$client = new Client('MY_VERY_SECRET_API_KEY!');
$params = new SmsParams('HI2U', '+4901234567890');
$client->sms($params);
shell script
SEVEN_API_KEY=<API-KEY> SEVEN_API_KEY_SANDBOX=<SANDBOX-API-KEY> php vendor/bin/phpunit tests/Client