PHP code example of gemblue / woowa

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

    

gemblue / woowa example snippets




use Gemblue\Woowa\Woowa;

$Woowa = new Woowa;

$Woowa->setup([
    'sender' => '{senderphonenumber}',
    'domain' => '{domain}',
    'license' => '{license}',
    'ip' => 'http://116.203.92.59',
    'key' => '{key}'
]);

$send = $Woowa->sendMessage('+62777777', 'Pesan ini adalah pesan percobaan dari library gemblue/woowa');

if ($send) {
    echo 'Pesan terkirim';
}