PHPackages                             salavati/wa-messenger - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. salavati/wa-messenger

ActiveLibrary[HTTP &amp; Networking](/categories/http)

salavati/wa-messenger
=====================

Send messages to WhatsApp using https://wamessenger.net API.

3.1.3(1y ago)027mitPHP

Since Sep 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ali-salavati/WaMessenger)[ Packagist](https://packagist.org/packages/salavati/wa-messenger)[ RSS](/packages/salavati-wa-messenger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (19)Used By (0)

[![logo](https://camo.githubusercontent.com/e723a5f411256e479df9c440280d6559070aba9744aec96c15574a25bf191085/68747470733a2f2f77616d657373656e6765722e6e65742f77702d636f6e74656e742f75706c6f6164732f323032322f30382f6c6f676f2d77616d657373656e6765722d76342e706e67)](https://camo.githubusercontent.com/e723a5f411256e479df9c440280d6559070aba9744aec96c15574a25bf191085/68747470733a2f2f77616d657373656e6765722e6e65742f77702d636f6e74656e742f75706c6f6164732f323032322f30382f6c6f676f2d77616d657373656e6765722d76342e706e67)Whatsapp API using [wamessenger.net](https://wamessenger.net)

####   ·  [ Documentation ](https://github.com/ali-salavati/WaMessenger/blob/master/README.md)  ·  [ Report Bug ](https://github.com/ali-salavati/WaMessenger/issues)  ·  [ Request Feature ](https://github.com/ali-salavati/WaMessenger/issues)

[](#-----------documentation------------report-bug------------request-feature-)

### 📔 Table of Contents

[](#notebook_with_decorative_cover-table-of-contents)

- [About the Project](#star2-about-the-project)
- [Install](#install)
- [Usage](#usage)
- [License](#warning-license)

🌟 About the Project
-------------------

[](#star2-about-the-project)

**WaMessenger** is a web service for sending and receiving messages, webhooks, and other reports from WhatsApp.

Install
-------

[](#install)

```
composer require salavati/wa-messenger
```

Usage
-----

[](#usage)

Go to  and register.

Create a new service. Then, receive the API key by clicking on "Connect to WhatsApp" and scanning the barcode with WhatsApp.

Insert this API key in your code or database. For example, if you are using the Laravel framework, you can write in the .env file:

```
WA_MESSENGER_API_KEY="Your api key"
```

Then, create an object of the WaMessenger class:

```
use Salavati\WaMessenger\WaMessenger;

$waMessenger = new WaMessenger(env('WA_MESSENGER_API_KEY'));
// Or
$waMessenger = new WaMessenger();
$waMessenger->setApiKey(env('WA_MESSENGER_API_KEY'));
```

Then set receivers:

```
$waMessenger->setReceivers('989121234567'); // For single receiver
// Or
$phoneNumber = ['989121234567', '989121234568', ...]; // For multiple receivers.
$waMessenger->setReceivers($phoneNumber);
```

Then send message

```
// For text message
$result = $waMessenger->sendMessage($text)

// For file message
$result = $waMessenger->sendMessage($caption, $fileUrl)
```

Response is something like this:

```
[
  {
    "phonenumber": "989121234567",
    "tracking_Code": 80461451
  },
  {
    "phonenumber": "989121234568",
    "tracking_Code": 80461452
  }
]
```

⚠️ License
----------

[](#warning-license)

- [MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~0 days

Total

18

Last Release

531d ago

Major Versions

1.0.9 → 2.0.02023-09-23

2.0.7 → 3.0.02023-10-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/31b75c8cf97d1a168d01c49d000f13a9066ccade69c3f577ce866c46fdad7766?d=identicon)[ali.salavati](/maintainers/ali.salavati)

---

Top Contributors

[![ali-salavati](https://avatars.githubusercontent.com/u/81990398?v=4)](https://github.com/ali-salavati "ali-salavati (33 commits)")

### Embed Badge

![Health badge](/badges/salavati-wa-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/salavati-wa-messenger/health.svg)](https://phpackages.com/packages/salavati-wa-messenger)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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