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

ActiveLibrary[API Development](/categories/api)

mathsgod/whatsapp-client
========================

A PHP client for WhatsApp API

1.0.0(2y ago)09[1 issues](https://github.com/mathsgod/whatsapp-client/issues)MITPHP

Since Jul 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mathsgod/whatsapp-client)[ Packagist](https://packagist.org/packages/mathsgod/whatsapp-client)[ RSS](/packages/mathsgod-whatsapp-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

WhatsApp Client
===============

[](#whatsapp-client)

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

[](#description)

This is a simple WhatsApp client that uses the WhatsApp Web API to send and receive messages.

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

[](#installation)

```
composer require mathsgod/whatsapp-client
```

Usage
-----

[](#usage)

You can generate token from

Phone number id is not phone number, find it in [https://developers.facebook.com/apps/{app\_id}/whatsapp-business/wa-dev-console/](https://developers.facebook.com/apps/%7Bapp_id%7D/whatsapp-business/wa-dev-console/)

### Send a text message

[](#send-a-text-message)

```
$wa = new WhatsApp\Client($token, $phone_number_id);

$wa->sendText("85298765432","Hello World!");
```

### Send a document

[](#send-a-document)

```
$wa = new WhatsApp\Client($token, $phone_number_id);

$wa->sendDocument("85298765432",$url,"document.pdf");
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1049d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18732337?v=4)[Raymond](/maintainers/mathsgod)[@mathsgod](https://github.com/mathsgod)

---

Top Contributors

[![mathsgod](https://avatars.githubusercontent.com/u/18732337?v=4)](https://github.com/mathsgod "mathsgod (7 commits)")

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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