The php WhatsApp library
Clone or download
mgp25 Merge pull request #2226 from AshV/patch-1
Fixed type in
Latest commit d023022 Jan 16, 2018
Failed to load latest commit information.
.github Update Feb 25, 2016
examples updated whatsapp.php Jul 9, 2016
src Update Registration.php Sep 6, 2016
tests Missed a file to include Jul 28, 2016
.gitignore Encryption support Oct 21, 2015
LICENSE Encryption support Oct 21, 2015 Fixed type in Jan 15, 2018
composer.json Composer updates Feb 21, 2016

Chat API Latest Stable Version Total Downloads License

Interface to WhatsApp Messenger


Read the wiki and previous issues before opening a new one! Maybe your issue is already answered.

For new WhatsApp updates check WhatsApp incoming updates log

Do you like this project? Support it by donating

  • Paypal Paypal: Donate
  • btc Bitcoin: 1DCEpC9wYXeUGXS58qSsqKzyy7HLTTXNYe


composer require whatsapp/chat-api

Special thanks

Also Ahmed Moh'd ( and Ali Hubail (@hubail) for making this project possible.

And everyone that contributes to it.

What is WhatsApp?

According to the company:

“WhatsApp Messenger is a cross-platform mobile messenger that replaces SMS and works through the existing internet data plan of your device. WhatsApp is available for iPhone, BlackBerry, Android, Windows Phone, Nokia Symbian60 & S40 phones. Because WhatsApp Messenger uses the same internet data plan that you use for email and web browsing, there is no cost to message and stay in touch with your friends.”

Jan. 2015: 30 billion messages per day, ~700 million users.


As of November 1, 2015 Chat API is licensed under the GPLv3+:

Terms and conditions

  • You will NOT use this API for marketing purposes (spam, massive sending...).
  • We do NOT give support to anyone that wants this API to send massive messages or similar.
  • We reserve the right to block any user of this repository that does not meet these conditions.


This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.