PHPackages                             bariew/whatsapp - 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. bariew/whatsapp

ActiveApi[API Development](/categories/api)

bariew/whatsapp
===============

Whatsapp API

00PHP

Since Aug 28Pushed 10mo agoCompare

[ Source](https://github.com/bariew/whatsapp)[ Packagist](https://packagist.org/packages/bariew/whatsapp)[ RSS](/packages/bariew-whatsapp/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

### Whatsapp API client.

[](#whatsapp-api-client)

Description
-----------

[](#description)

- send messages
- create templates
- receive media

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist bariew/whatsapp

```

or add

```
"bariew/whatsapp": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
$whatsapp = Api::instance($id, $token, $business_id);
$templateId = $whatsapp->templateCreate("template1_en", "Hello {{username}}", "", "From My App", [
    "https://my.url" => "click this url",
    "my_key" => "Ok"
], 'en');

$messageId = $whatsapp->templateMessage('+9-900-033-44-16', 'template1_en', ['username' => "Paul"])['messages'][0]['id'];

see more examples in Api::webhookProcess()
since most actions happen when user answers to our messages and we need to process the answer in our webhook

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8214f36975034f4134506744cd956e8415491006c1b3512af22bf75f91165f06?d=identicon)[bariew](/maintainers/bariew)

---

Top Contributors

[![bariew](https://avatars.githubusercontent.com/u/827508?v=4)](https://github.com/bariew "bariew (1 commits)")

### Embed Badge

![Health badge](/badges/bariew-whatsapp/health.svg)

```
[![Health](https://phpackages.com/badges/bariew-whatsapp/health.svg)](https://phpackages.com/packages/bariew-whatsapp)
```

###  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.0k14](/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)
