PHP code example of algmass / whatsapp

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

    

algmass / whatsapp example snippets


use WhatsApp;

WhatsApp::send('20123456789', 'Hello from my Laravel WhatsApp package!');

WhatsApp::shouldReceive('send')
    ->once()
    ->with('20123456789', 'test message');

use WhatsApp;

WhatsApp::send('20123456789', 'رسالة من باكدج Laravel WhatsApp!');
bash
php artisan vendor:publish --tag=whatsapp-config

config/whatsapp.php
bash
php artisan vendor:publish --tag=whatsapp-config

config/whatsapp.php