PHPackages                             beedelivery/client-php-api-wa-me - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. beedelivery/client-php-api-wa-me

ActiveLibrary[API Development](/categories/api)

beedelivery/client-php-api-wa-me
================================

Classe PHP para comunicação com api-wa.me

v1.0.1(2y ago)05MITPHPPHP ^7.2|^8.1

Since Jan 19Pushed 2y agoCompare

[ Source](https://github.com/bee-delivery/client-php-api-wa-me)[ Packagist](https://packagist.org/packages/beedelivery/client-php-api-wa-me)[ Docs](https://github.com/bee-delivery/client-php-api-wa-me)[ RSS](/packages/beedelivery-client-php-api-wa-me/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

WhatsApp API - PHP
==================

[](#whatsapp-api---php)

##### Gerar Instância Key:

[](#gerar-instância-key)

Acessar: [api-wa.me](https://api-wa.me)

[Swagger](https://server.api-wa.me/docs/)

Installing via composer
-----------------------

[](#installing-via-composer)

```
composer require beedelivery/client-php-api-wa-me

```

### EXAMPLES

[](#examples)

##### WHATSAPP

[](#whatsapp)

```
use Api\Wame\WhatsApp;

include_once 'vendor/autoload.php';

$whatsapp     = new WhatsApp(
    ["server" => "API server",
    "key" => "Your Key Instance"]
    );
```

#### Get webhook

[](#get-webhook)

```
    $whatsapp->constructWebhook();
    $whatsapp->from->remoteJid; //  number that sent message
    $whatsapp->from->messageType; // video | text | audio| image | sticker | document| reaction | liveLocation |
    $whatsapp->from->msgId;
    $whatsapp->from->pushName;
    $whatsapp->from->text;
```

#### Exemple

[](#exemple)

```
if ($whatsapp->from->messageType === "text" && $whatsapp->from->text === "Hi") {
  $whatsapp->sendText($whatsapp->from->remoteJid, "Hello!");
}
```

#### Get QrCode HTML

[](#get-qrcode-html)

```
echo $whatsapp->getQrCodeHTML();
```

#### Get QrCode Base64

[](#get-qrcode-base64)

```
echo $whatsapp->getQrCodeBase64();
```

#### Infor Instance

[](#infor-instance)

```
echo $whatsapp->inforInstance();
```

#### Update Webhook

[](#update-webhook)

```
$body = [
        "allowWebhook" => false,
        "webhookMessage" => "",
        "webhookGroup" => "",
        "webhookConnection" => "",
        "webhookQrCode" => "",
        "webhookMessageFromMe"=>"",
        "webhookHistory"=>""
    ];
echo $whatsapp->updateWebhook($body);
```

#### Logout

[](#logout)

```
echo $whatsapp->logout();
```

Actions
-------

[](#actions)

### Get List Contacts

[](#get-list-contacts)

```
echo $whatsapp->listContacts();
```

### Get Profile Pic

[](#get-profile--pic)

```
echo $whatsapp->profilePic('556696852025');
```

### Update Profile Name

[](#update-profile-name)

```
echo $whatsapp->updateProfileName('Raphael Serafim');
```

### Update Profile And Group Picture

[](#update-profile-and-group--picture)

```
$url =''; // url image
$id  ='556696852025'; // if it's a group, use full id ex: 123456789@g.us
echo $whatsapp->updateProfilePicture($id, $url);
```

### Read Receipt

[](#read-receipt)

```
$MsgId ='';
$to  ='556696852025'; // if it's a group, use full id ex: 123456789@g.us
echo $whatsapp->readReceipt($to, $MsgId);
```

### Download Media

[](#download-media)

```
  $body = [
    "messageKeys" => [
        "mediaKey" => "",
        "directPath" => "",
        "url" => "",
        "messageType" => ""
    ]
  ];
echo $whatsapp->downloadMediaMessage($body);
```

Send Message
------------

[](#send-message)

### send Presence

[](#send-presence)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$status = 'composing';   // unavailable | available | composing | recording | paused
echo $whatsapp->sendPresence($to, $status);
```

### send Text

[](#send-text)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$text   = 'Hi';
echo $whatsapp->sendText($to, $text);
```

### send Audio

[](#send-audio)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$url    = ''; // your MP3 or OGG audio URL
$ptt    = true;
echo $whatsapp->sendAudio($to, $url, $ptt  );
```

### send Media

[](#send-media)

```
$to         = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$url        = '';
$type       = 'image'; //  image |  video | audio | document
$caption    = 'Hi';
echo $whatsapp->sendMedia($to, $url, $type, $caption);
```

### Send Button

[](#send-button)

```
   $body = [
       "to" => "556696852025",
       "data" => [
           "text" => "Recebeu ?",
           "buttons" => [
               [
                   "title" => "Sim",
                   "id" => "1"
               ],
               [
                   "title" => "Não",
                   "id" => "2"
               ]
           ],
           "footerText" => "Escolha uma opção"
       ]
   ];
echo $whatsapp->sendButton($body);
```

### Send Template Buttons

[](#send-template-buttons)

```
   $body = [
       "to" => "556696852025",
       "data" => [
           "text" => "Finalizar a compra",
           "buttons" => [
               [
                   "type" => "urlButton", // replyButton | urlButton | callButton
                   "title" => "Pagar",
                   "payload" => "https://api-wa.me"
               ]
           ],
           "footerText" => "Visite o site para finalizar"
       ]
   ];
echo $whatsapp->sendTemplateButtons($body);
```

### Send List

[](#send-list)

```
   $body = [
       "messageData" => [
           "to" => "556696852025",
           "buttonText" => "Menu",
           "text" => "Esse nosso menu",
           "title" => "Menu",
           "description" => "veja nosso menu",
           "sections" => [
               [
                   "title" => "Menu 01",
                   "rows" => [
                       [
                           "title" => "Opção 01",
                           "description" => "essa é uma opção",
                           "rowId" => "1"
                       ],
                       [
                           "title" => "Opção 02",
                           "description" => "essa é outra opção",
                           "rowId" => "2"
                       ]
                   ]
               ]
           ],
           "listType" => 0
       ]
   ];
echo $whatsapp->sendList($body);
```

### send Contact

[](#send-contact)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$name   = 'CACHE SISTEMAS';
$number = '+556696883327';
echo $whatsapp->sendContact($to, $name, $number);
```

### send Location

[](#send-location)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$lat    = 35.000;
$lon    = 20.000;
$address = 'Rua do fulando';
echo $whatsapp->sendLocation($to, $lat, $lon, $address);
```

### send Reaction

[](#send-reaction)

```
$to     = '556696852025'; // if it's a group, use full id ex: 123456789@g.us
$text   =  '😘';
$msgId  =  '';
echo $whatsapp->sendReaction($to, $text, $msgId);
```

Group
-----

[](#group)

### Get list Group

[](#get-list-group)

```
   echo $whatsapp->listGroup();
```

### Get infor Group

[](#get-infor-group)

```
   $group_id = '123456789@g.us';
   echo $whatsapp->inforGroup($group_id);
```

### Get Invite Code Group

[](#get-invite-code-group)

```
   $group_id = '123456789@g.us';
   echo $whatsapp->groupInviteCode($group_id);
```

### create Group

[](#create-group)

```
   $name = 'API PHP WhatsApp';
   $participants = ['556696852025'];
   echo $whatsapp->createGroup($name, $participants);
```

### add Participants Group

[](#add-participants-group)

```
   $group_id     = '123456789@g.us';
   $participants = ['556696852025'];
   echo $whatsapp->addParticipantsGroup($group_id, $participants);
```

### Promote Participants Group Admin

[](#promote-participants-group-admin)

```
   $group_id     = '123456789@g.us';
   $participants = ['556696852025'];
   echo $whatsapp->promoteParticipantsGroup($group_id, $participants);
```

### Demote Participants Group

[](#demote-participants-group)

```
   $group_id     = '123456789@g.us';
   $participants = ['556696852025'];
   echo $whatsapp->demoteParticipantsGroup($group_id, $participants);
```

### Set Who Can Send Message Group

[](#set-who-can-send-message-group)

```
   $group_id     = '123456789@g.us';
   // true = Admin; false= All
   echo $whatsapp->setWhoCanSendMessageGroup($group_id, true);
```

### Set Who Can Change Settings Group

[](#set-who-can-change-settings-group)

```
   $group_id     = '123456789@g.us';
   // true = Admin; false= All
   echo $whatsapp->setWhoCanChangeSettingsGroup($group_id, true);
```

### Remove Participants Group

[](#remove-participants-group)

```
   $group_id     = '123456789@g.us';
   $participants = ['556696852025'];
   echo $whatsapp->removeParticipantsGroup($group_id, $participants);
```

### Leave Group

[](#leave-group)

```
   $group_id     = '123456789@g.us';
   echo $whatsapp->leaveGroup($group_id);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1bc74aaa9a1d95bb1a3050dd3e68d5084a7a4ead36c2d3280a542bf540ba4ae?d=identicon)[luanrodrigues](/maintainers/luanrodrigues)

---

Top Contributors

[![raphaelvserafim](https://avatars.githubusercontent.com/u/68257896?v=4)](https://github.com/raphaelvserafim "raphaelvserafim (105 commits)")[![luanrodrigues](https://avatars.githubusercontent.com/u/8210294?v=4)](https://github.com/luanrodrigues "luanrodrigues (3 commits)")

### Embed Badge

![Health badge](/badges/beedelivery-client-php-api-wa-me/health.svg)

```
[![Health](https://phpackages.com/badges/beedelivery-client-php-api-wa-me/health.svg)](https://phpackages.com/packages/beedelivery-client-php-api-wa-me)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
