PHP code example of nandwabee / africastalking

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

    

nandwabee / africastalking example snippets



//Instantiate the object.

$obj = new AfricasTalking('my_username','my_key');

$response = $obj->send($to,$message,$options);

//Do something with the array