PHP code example of vigo5190 / bytehand-api-php

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

    

vigo5190 / bytehand-api-php example snippets




$config = array(
              'id' => 0000,
              'key' => "XXXXXXXXXXXXXXX",
              'from' => "SMS-INFO",
          );
ByteHandAPI\smser::init($config);



$message = new ByteHandAPI\message();
echo $message->to('cell number')->text("test message")->send()->getStatus();
$message_id = $message->getId();

$message_old = new ByteHandAPI\message($message_id);
echo $mmm->getStatus();