PHP code example of rcsil / whatsapp-business

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

    

rcsil / whatsapp-business example snippets


'route' => [
    'enabled' => true,
    'prefix' => 'whatsapp-business',
    'middleware' => ['api'],
    'name' => 'whatsapp-business.',
],
bash
php artisan vendor:publish --tag=whatsapp-business-config
bash
php artisan vendor:publish --tag=whatsapp-business-migrations
php artisan migrate
text
GET  /whatsapp-business/webhook
POST /whatsapp-business/webhook