PHP Classes

PHP WhatsApp API: Send message to WhatsApp user with its 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
StarStarStar 57%Total: 597 All time: 5,216 This week: 41Up
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: 23 packages by
Country: Peru Peru
Age: ???
All time rank: 20474 in Peru Peru
Week rank: 164 Up1 in Peru Peru Up
Innovation award
Innovation award
Nominee: 10x

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 (7)  
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 (7)  /  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 (7)  /  src  /  Exceptions  
File Role Description
  Plain text file InvalidMediaException.php Class Class source

  Files folder image Files (7)  /  tests  
File Role Description
  Plain text file MessagesTest.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:597
This week:0
All time:5,216
This week:41Up
User Ratings User Comments (1)
 All time
Utility:85%StarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1719
 
Thats a very good class !
1 year ago (José Filipe Lopes Santos)
70%StarStarStarStar