elngar/whatsapp

helper to send whatsapp messages

Maintainers

Package info

github.com/ahmed-a-elngar/whatsappSender

pkg:composer/elngar/whatsapp

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2023-01-26 10:15 UTC

This package is auto-updated.

Last update: 2026-03-28 01:30:27 UTC


README

package to send WhatsApp text messages

Before Installation

  1. Register in meta developers
  2. Follow the instructions to
    1. create app
    2. connect to whatsapp
    3. add phone number for testing

Installation

  1. Install the package via Composer:
composer require elngar/whatsapp
  1. Change configrations in config/whatsapp.php file:
"access_token"          =>      '',
"phone_number_id"       =>      ''

Usage

  • To send text message to particular number:
    Whatsapp::send('01*********', 'Hello msg'); 
    
  • To get sent message response result:
    1. When sending
      $response = Whatsapp::send('01*********', 'Hello msg'); 
    
    1. After sending message
      $response = Whatsapp::getSendResult();
    

Documentation