elngar / whatsapp
helper to send whatsapp messages
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/elngar/whatsapp
README
package to send WhatsApp text messages
Before Installation
- Register in meta developers
- Follow the instructions to
- create app
- connect to whatsapp
- add phone number for testing
Installation
- Install the package via Composer:
composer require elngar/whatsapp
- 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:
- When sending
$response = Whatsapp::send('01*********', 'Hello msg');- After sending message
$response = Whatsapp::getSendResult();