1. Go to this page and download the library: Download ailuracode/wappify 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/ */
ailuracode / wappify example snippets
'providers' => [
// Another suppliers...
AiluraCode\Wappify\WappifyServiceProvider::class,
],
// config/wappify.php
'accounts' => [
'default' => [
'app_secret' => env('WHATSAPP_APP_SECRET'), // Meta App Secret, HMAC key
'verify_token' => env('WHATSAPP_VERIFY_TOKEN'), // handshake token, independent from the API token
],
],
use AiluraCode\Wappify\Actions\SendTextMessage;
$message = (new SendTextMessage('593960800736', 'hello'))();
bash
php artisan wappify:queue
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.