PHP code example of drewlabs / envoyer-infobip

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

    

drewlabs / envoyer-infobip example snippets



// Register package using composer autoloader
//  Drewlabs\Envoyer\Message;


$driver = new Driver('<YOUR_HOST>');

$result = $driver->withAPIKey('<YOUR_API_KEY>')
    ->sendRequest(Message::new('<RECIPIENT_PHONE_NUMBER>', 'Enoyer - welcome to the world of all possibilities!')
        ->from('My App'));