PHP code example of fingergiant / giantsms-api

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

    

fingergiant / giantsms-api example snippets


    use BulkSMS\GiantSMS;
    
    $sms = new GiantSMS('xxxxxxxxx', 'xxxxxx'); // API username & secret
    var_dump($sms->send('Hello there', '+233XXXXXXXXX', 'Tester')); // message, recipient, sender

    use BulkSMS\GiantSMS;
    
    $sms = new GiantSMS('xxxxxxxxx', 'xxxxxx'); // API username & secret
    var_dump($sms->balance());