Send and Receive WhatsApp messages using PHP – This tutorial will explain how to send and receive whatsapp messages using php. Here you have learn the full of techniques to send the whatsapp messages. You Need to sync Contacts with WhatsApp Server to Send Messages to those Numbers. Note : If You try to Send Messages without Syncing Contacts , your WhatsApp may Get BLOCKED.

send and receive whatsapp messages using php

Here, we need two objects to execute the script so just get the link and learn full thing to run the script. Below i have provide the requirements link so just see and go on the link to execute it.

Send and Receive WhatsApp messages using PHP

In this tutorial you will see How to Send and Receive Messages in WhatsApp using PHP. Syncing Contacts is an Initial & even Required Step. You Need to sync Contacts with WhatsApp Server to Send Messages.

Prerequisite

There are two prerequisite there to execute the script. They are,
1. PHPHive WhatsApp RESTAPI Token
Click here to get the token WhatsApp API Token.
2. WhatsApp Password
Just refer this link to get the password Get WhatsApp Password

Code for Send the messages

Here, we have provide the full code to send whatsapp messages in someone’s using PHP.

Given the Sample Output (Send message)

This is sample output for above code to send the messages.

Code for Receive the messages

Here, we have provide the full code to receive whatsapp messages in someone’s using PHP.

Given the Sample Output (Receive message)

This is sample output for above code to send the messages.

There’s no daily limits to send and receive messages. But spamming is obviously not allowed. We are keeping records of IP’s, if we find someone spamming our service then that IP will be Banned.

Prerequisite’s for Syncing Contacts in WhatsApp

1. WhatsAPI PHP Library.
2. WA Password.
3. PHP Protobuf and Curve25519 to enable end to end encryption.
If You dont have WA Password, just refer this article Get WhataApp Password
If You haven’t download WhatsAPI PHP Library, so download it now as we going to use in the Process of obtaining WA Password.

Click to download

Logging on WhatsApp

Include the library file and save the code.

Send the messages

Here, the full code of send the messages.

Receive the messages

Here, the full code of receive the messages.

Complete code Send & Receive messages

Here, we provide the complete code.