PHP code example of partikule / spothit-sms-api

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

    

partikule / spothit-sms-api example snippets




$client = new Spothit\Api\Client('***API_KEY***');

$client->setSmsRecipients(['+336********']);
$client->setSmsSender('AnySender');

$client->send('Yiiii - This is my first SMS');