PHP code example of susutawar / php-watzap

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

    

susutawar / php-watzap example snippets


use PhpWatzap/WatZap;

// ...

$watzapClient = new WatZap("MY_API_KEY");

$result = $watzapClient->apiKey();

$resultBody = $result->body;

use PhpWatzapp/Facade/Watzap;

// ...

$result = Watzap::apiKey();

$resultBody = $result->body;
bash
composer 
bash
php artisan vendor:publish --tag=watzap