PHP Classes

PHP WhatsApp API: Send message to WhatsApp user with its API

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog (1)    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 585 All time: 5,277 This week: 122Up
Version License PHP version Categories
php-whatsapp-api 1.0.0MIT/X Consortium ...5PHP 5, Web services, Chat
Description 

Author

This package can send messages to WhatsApp users with its API.

It can use the official Meta group WhatsAPI API to obtain permission to act on behalf of a WhatsApp user.

The package can send HTTP requests to the WhatsApp API to send a message to a given WhatsApp user.

Innovation Award
PHP Programming Innovation award winner
December 2022
Winner
Many people use WhatsApp daily to send messages to each other using their mobile phones or computers.

Several APIs allow developers to send messages to other WhatsApp users via WhatsApp.

This package uses the official API from the Meta Group to send messages to other WhatsApp users.

Manuel Lemos
Picture of Mateo
  Performance   Level  
Name: Mateo <contact>
Classes: 20 packages by
Country: Peru Peru
Age: ???
All time rank: 21174 in Peru Peru
Week rank: 45 Up2 in Peru Peru Up
Innovation award
Innovation award
Nominee: 8x

Winner: 3x

Example

<?php

use Mateodioev\WhatsappApi\{Api, Messages};

require
__DIR__ . '/vendor/autoload.php';


$token = "your token";
$api = new Api($token, 11111111111);

$msg = new Messages($api);

$msg->to('51xxxxxxxxx');

var_dump($msg->sendText('Hola', true));


  Files folder image Files  
File Role Description
Files folder imagesrc (2 files, 1 directory)
Files folder imagetests (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageExceptions (1 file)
  Plain text file Api.php Class Class source
  Plain text file Messages.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file InvalidMediaException.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file MessagesTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:585
This week:0
All time:5,277
This week:122Up
User Ratings User Comments (1)
 All time
Utility:85%StarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1697
 
Thats a very good class !
1 year ago (José Filipe Lopes Santos)
70%StarStarStarStar