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

ActiveLibrary[API Development](/categories/api)

eagleminds/whatsapp-sender
==========================

A basic package for sending WhatsApp messages through API

014PHP

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/eaglemindsdev/whatsapp-sender)[ Packagist](https://packagist.org/packages/eagleminds/whatsapp-sender)[ RSS](/packages/eagleminds-whatsapp-sender/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Eagleminds Technologies Pvt Ltd](https://camo.githubusercontent.com/013218eabacda140d948785039a57b8996d904d5f8b8eeb00e47ca2f43f2d892/68747470733a2f2f6561676c656d696e64732e6e65742f77702d636f6e74656e742f75706c6f6164732f323032332f30342f6561676c656d696e64732d6c6f676f2d66696e616c2d636f70792d312e706e67)](https://camo.githubusercontent.com/013218eabacda140d948785039a57b8996d904d5f8b8eeb00e47ca2f43f2d892/68747470733a2f2f6561676c656d696e64732e6e65742f77702d636f6e74656e742f75706c6f6164732f323032332f30342f6561676c656d696e64732d6c6f676f2d66696e616c2d636f70792d312e706e67)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#)

WhatsApp Message Sender API Library for PHP
===========================================

[](#whatsapp-message-sender-api-library-for-php)

WhatsApp message send with [WhatsApp-Sender](https://sender.track-new.com/) This library provides a simple and efficient way to send WhatsApp messages programmatically using PHP. It is designed to work seamlessly with Laravel and can be easily integrated into your projects using Composer.

Features
--------

[](#features)

- Send Messages: Send text, images, videos, documents, and other media via WhatsApp.
- Laravel Integration: Built with Laravel developers in mind for smooth integration.
- Composer Support: Easily install and manage dependencies using Composer.

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

[](#installation)

You can install this library via Composer. Run the following command in your terminal:

```
composer require eagleminds/whatsapp-sender
```

Usage
-----

[](#usage)

### Initialize the Library

[](#initialize-the-library)

First, you need to initialize the WhatsApp message sender with your credentials:

```
use Eagleminds\WhatsappSender\WhatsAppSender;
```

### Send a Message

[](#send-a-message)

You can then use the sendMessage method to send a message to a WhatsApp recipient:

```
 public function sendMessage(Request $request)
    {
        // Get mobile number and message from request
        $mobileNumber = $request->input('mobile_number');
        $message = $request->input('message');

        // Send WhatsApp message
        try {
            $response = $this->whatsappSender->sendWhatsAppMessage($mobileNumber, $message);
            return response()->json(['success' => true, 'message' => 'WhatsApp message sent successfully', 'response' => $response]);
        } catch (\Exception $e) {
            return response()->json(['success' => false, 'message' => 'Failed to send WhatsApp message', 'error' => $e->getMessage()], 500);
        }
    }
```

### Send Media

[](#send-media)

To send media such as images, videos, or documents, use the sendMediaMessage method:

```
$mediaUrl = 'https://example.com/image.jpg';
$caption = 'Check out this image!';
$response = $sender->sendMediaMessage($recipient, $mediaUrl, $caption);
```

WhatsApp Sender Platform Documentation
--------------------------------------

[](#whatsapp-sender-platform-documentation)

This repository contains documentation for integrating with the WhatsApp Sender Platform provided by Track New. This platform allows you to send WhatsApp messages programmatically using APIs. Below are the steps to register, login, and obtain the necessary keys and template IDs for integration.

### Registering and Logging In

[](#registering-and-logging-in)

To use the WhatsApp Sender Platform, you need to register on the [WhatsApp-Sender](https://sender.track-new.com/) website.

### Registration Steps

[](#registration-steps)

- Visit the [WhatsApp-Sender](https://sender.track-new.com/) website.
- Click on the "Sign Up" or "Register" button.
- Fill out the registration form with your details, including email address and password.
- Submit the form to create your account.

### Logging In

[](#logging-in)

- Go to the [WhatsApp-Sender](https://sender.track-new.com/)r website.
- Click on the "Login" button.
- Enter your registered email address and password.
- Click on "Login" to access your account dashboard.

Obtaining API Key and Template ID
---------------------------------

[](#obtaining-api-key-and-template-id)

After logging in, you will need to obtain the necessary API key (app\_key), authentication key (auth\_key), and template ID for integrating with the WhatsApp Sender Platform.

### Getting API Key (app\_key) and Authentication Key (auth\_key)

[](#getting-api-key-app_key-and-authentication-key-auth_key)

- Once logged in, navigate to your account settings or dashboard.
- Look for an option like "My Apps" then click app "Integration Settings".

[![app_key](https://github.com/eaglemindsdev/track-new-privacy-policy/raw/main/img/app_key.png)](https://github.com/eaglemindsdev/track-new-privacy-policy/blob/main/img/app_key.png)

- Get authentication key (auth\_key) click Auth key menu and show Auth key. [![auth_key](https://github.com/eaglemindsdev/track-new-privacy-policy/raw/main/img/auth_key.png)](https://github.com/eaglemindsdev/track-new-privacy-policy/blob/main/img/auth_key.png)
- Note down these keys as they will be required for API authentication.

Obtaining Template ID
---------------------

[](#obtaining-template-id)

- In your account dashboard, find the section related to message templates or templates management. [![template_create](https://github.com/eaglemindsdev/track-new-privacy-policy/raw/main/img/template_create.png)](https://github.com/eaglemindsdev/track-new-privacy-policy/blob/main/img/template_create.png)
- Create a new template if required or select an existing template. [![template_id](https://github.com/eaglemindsdev/track-new-privacy-policy/raw/main/img/template_id.png)](https://github.com/eaglemindsdev/track-new-privacy-policy/blob/main/img/template_id.png)
- Note down the template ID associated with the template you wish to use for sending messages.

Examples
--------

[](#examples)

Here are some examples to help you get started:

### Sending a Text Message

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

```
$response = $sender->sendMessage('whatsapp_number', 'Hello, World!');
```

### Sending an Image

[](#sending-an-image)

```
$mediaUrl = 'https://example.com/image.jpg';
$caption = 'Check out this image!';
$response = $sender->sendMediaMessage('whatsapp_number', $mediaUrl, $caption);
```

Requirements
------------

[](#requirements)

- PHP 7.0 or higher
- Laravel 5.5 or higher (if using with Laravel)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.1% 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/dd7a5b568bb14e929414dd23652abe17433cae9480b44fb03d7b6be786898d66?d=identicon)[Eagleminds](/maintainers/Eagleminds)

---

Top Contributors

[![eaglemindsdev](https://avatars.githubusercontent.com/u/118447921?v=4)](https://github.com/eaglemindsdev "eaglemindsdev (22 commits)")[![VadivelanTEST](https://avatars.githubusercontent.com/u/94745561?v=4)](https://github.com/VadivelanTEST "VadivelanTEST (14 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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