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

ActiveLibrary

maree/whatsapp
==============

package to send whatsapp messages using whatsapp api direct

37PHP

Since Jan 15Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Whatsapp
========

[](#whatsapp)

Create App
----------

[](#create-app)

- register in facebook (meta) developers
- Create a Meta App: Go to developers.facebook.com &gt; My Apps &gt; Create App. Select the "Business" type and follow the prompts on your screen.
- From the App Dashboard, click on the app you would like to connect to WhatsApp. Scroll down to find the "WhatsApp" product and click Set up. Next, you will see the option to select an existing Business Manager (if you have one) or, if you would like, the onboarding process can create one automatically for you (you can customize your business later, if needed).

Make a selection and click Continue. This will:

Associate your app with the Business Manager account that you selected earlier (or had created for you). Generate a WhatsApp Business account. Generate a test business phone number and associate it with your WhatsApp Business Account. You can use this number with the API to send an unlimited number of messages to up to 5 recipient phone numbers. Recipient phone numbers can be any valid number, but you must verify each one in the next step. Redirect you to the WhatsApp &gt; Getting Started (or Setup) panel in the App Dashboard.

In the WhatsApp &gt; Getting Started (or Setup) panel:

Select your test phone number in the From field. Enter the recipient phone number you would like to message in the To field. Ensure the number is correct, and that you want to add it to your list of 5 possible message recipients —as you add phone numbers, follow the prompts on the screen to verify you have access to them. Once this number has been added, it cannot be removed from your list. Note: This limitation is only for WhatsApp-provided test phone numbers. Real phone numbers that you register do not have a limit on the number of recipients. Once you enter a recipient phone number, the code sample on the page will be updated to demonstrate an API call that sends a pre-approved message template to that number. Message templates are the only type of message that can be sent to customers who have yet to message you, or have not messaged you in the last 24 hours. Thus, message templates are primarily used to initiate conversations with customers.

Finally, click Send message to send the first message. As an alternative, you can copy the code sample provided and execute it in your Terminal or in Postman. You have just sent a test message!

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require maree/whatsapp
```

Publish your whatsapp config file with

```
php artisan vendor:publish --provider="Maree\Whatsapp\WhatsappServiceProvider" --tag="whatsapp"
```

then change your whatsapp config from config/whatsapp.php file

```
    "access_token"   => "" ,
    "phone_number_id" => "", //Phone number identifier
```

Usage
-----

[](#usage)

Send simple text message
------------------------

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

```
use Maree\Whatsapp\Whatsapp;
    $response = Whatsapp::sendTextMessage('2010********' , 'hello maree');
```

documentaion
------------

[](#documentaion)

-

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

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/0e88e6da55b1e4b359544c3e94fab80c6f73b3ce7ac82afd1d872a41aeb349fa?d=identicon)[mohamedmaree](/maintainers/mohamedmaree)

---

Top Contributors

[![mohamedmaree](https://avatars.githubusercontent.com/u/12659069?v=4)](https://github.com/mohamedmaree "mohamedmaree (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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