PHP code example of kayana / whapify

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

    

kayana / whapify example snippets


use Kayana\Whapify\Whapify;

function test() {
    $whapify = new Whapify();

    $secret = "1234567890";
    $account = "yolow";

    // set credential
    $whapify->setCredential($account, $secret);

    $result = $whapify->send("+6281123456789", "test vendor original api by kayana dari oka");
    return $result
}
bash
  php artisan vendor:publish kayana-whapify