PHP Classes

Villaments PHP WhatsApp API: Interact with WhatsApp using the Villaments API

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 594 All time: 5,235 This week: 40Up
Version License PHP version Categories
whatsapp 1.0.0Custom (specified...5PHP 5, Web services, Chat
Description 

Author

This package can interact with WhatsApp using the Villaments API.

It can send several HTTP requests to the Villaments API to perform several actions with a given WhatsApp account. Currently it can:

- Create a new account using a given WhatsApp account number
- Set the URL for Web hook to be called when there are interaction updates
- Get the balance of a given account
- Send a message to a given WhatsApp account

Innovation Award
PHP Programming Innovation award nominee
October 2020
Number 8
WhatsApp is a popular chat application used by many millions of people around the world.

This package provides a solution for applications to send messages to other users and interact with them using the Villaments API.

Manuel Lemos
Picture of Rohit Arya
  Performance   Level  
Name: Rohit Arya <contact>
Classes: 3 packages by
Country: India India
Age: 34
All time rank: 152688 in India India
Week rank: 49 Up7 in India India Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php
require_once('../includes/curl.php');
require_once(
'../includes/whatsapp.php');
$wa=new Whatsapp();
$data['api_key']='XXXXXXXXXXXXX'; // Key received at the time of account creation
$data['phone']='Receiver Mobile Number with country code and without + symbol'; // Receiver Mobile Number
$data['message']='Your Message Here'; // Message to be send
$res=$wa->sendwhatsapp($data);
echo
"<pre>";
print_r($data);
?>


Details

whatsapp

Welcome to best REST API for WhatsApp. This library provide you an complete solution for WhatsApp REST API without any necessities of code.

There are different function in this package:- 1. Register a new account on portal. 2. Scan QR code to generate session. 3. Get account balance. 4. set web hook to receive incoming message. 5. Send text message. 6. Send File.

Example files includes detailed implementation of these functions.

First of all you have to register your account to use this API. After Registration you have to scan QR code from your whatsapp web. After scanning QR code you can use all the functions of the package.


  Files folder image Files (12)  
File Role Description
Files folder imageexamples (7 files)
Files folder imageincludes (3 files)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (12)  /  examples  
File Role Description
  Accessible without login Plain text file createAccount.php Example Example script
  Accessible without login Plain text file getBalance.php Example Example script
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file scanQR.php Aux. Auxiliary script
  Accessible without login Plain text file sendFile.php Example Example script
  Accessible without login Plain text file sendTextMessage.php Example Example script
  Accessible without login Plain text file setWebHook.php Example Example script

  Files folder image Files (12)  /  includes  
File Role Description
  Plain text file curl.php Class Class source
  Accessible without login HTML file index.html Doc. Documentation
  Plain text file whatsapp.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:594
This week:0
All time:5,235
This week:40Up
User Comments (3)