PHPackages                             inotechno/watsap-broadcast - 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. inotechno/watsap-broadcast

ActiveLibrary

inotechno/watsap-broadcast
==========================

Watsap.id Package PHP

v1.1.1(2y ago)013MITPHP

Since Feb 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/inotechno/watsap-broadcast)[ Packagist](https://packagist.org/packages/inotechno/watsap-broadcast)[ RSS](/packages/inotechno-watsap-broadcast/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Watsap PHP Library
==================

[](#watsap-php-library)

Watsap PHP Library is a simple library for integrating WhatsApp messaging service using cURL. This library provides several methods for sending messages, media, buttons, templates, lists, and QR codes through WhatsApp service.

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

[](#installation)

You can install the library using Composer. Make sure Composer is installed in your project. Open the terminal and run the following command:

```
composer require inotechno/watsap-broadcast
```

Usage
-----

[](#usage)

Here is an example of using the library to send messages and media:

```
use Watsap\Watsap;

// Initialize Watsap object
$watsap = new Watsap();

// Send Message
$messageData = [
    'api_key' => 'your_api_key',
    'sender' => 'sender_id',
    'number' => '628123456789',
    'message' => 'Hello, this is a WhatsApp message!'
];

$response = $watsap->sendMessage($messageData);
var_dump($response);

// Send Media
$mediaData = [
    'api_key' => 'your_api_key',
    'sender' => 'sender_id',
    'number' => '628123456789',
    'media_type' => 'image',
    'caption' => 'This is an image',
    'media_url' => 'https://example.com/image.jpg'
];

$response = $watsap->sendMedia($mediaData);
var_dump($response);

// Send Button
 $data = [
    'api_key' => 'your_api_key',
    'sender' => 'sender_id',
    'number' => '628123456789',
    'footer' => 'optional',
    'message' => 'Hello, this is a WhatsApp message!',
    'url' => 'https://example.com/image.jpg',
    'button' => ["button 1","button 2","button 3"]
];

$response = $watsap->sendButton($data);
var_dump($response);

// Generate QR
 $data = [
    'api_key' => 'your_api_key',
    'device' => '628968865555'
];

$response = $watsap->generateQR($data);
var_dump($response);
```

Available Methods
-----------------

[](#available-methods)

1. **sendMessage($data):**

    - Send text messages to a WhatsApp number.
2. **sendMedia($data):**

    - Send media (image, video, audio) to a WhatsApp number.
3. **sendButton($data):**

    - Send messages with buttons to a WhatsApp number.
4. **sendTemplateButton($data):**

    - Send messages with template buttons to a WhatsApp number.
5. **sendList($data):**

    - Send a list to a WhatsApp number.
6. **generateQR($data):**

    - Generate a QR code using the WhatsApp service.

**Note:**

- Make sure to replace the `api_key` and other information with your Watsap.id account details.

Notes
-----

[](#notes)

Ensure that you understand and comply with the terms of use of the WhatsApp service. This library is not responsible for misuse. Use it wisely and in accordance with WhatsApp Business API guidelines.

License
-------

[](#license)

Watsap PHP Library is licensed under the MIT License. See [LICENSE](LICENSE) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~13 days

Total

2

Last Release

813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd3b36a2becfb001e97be42bdde61a540cd9ad040f3154a618d48e47c6b8daae?d=identicon)[inotechno](/maintainers/inotechno)

---

Top Contributors

[![inotechno](https://avatars.githubusercontent.com/u/151206616?v=4)](https://github.com/inotechno "inotechno (1 commits)")[![mindotektpm](https://avatars.githubusercontent.com/u/109516189?v=4)](https://github.com/mindotektpm "mindotektpm (1 commits)")

### Embed Badge

![Health badge](/badges/inotechno-watsap-broadcast/health.svg)

```
[![Health](https://phpackages.com/badges/inotechno-watsap-broadcast/health.svg)](https://phpackages.com/packages/inotechno-watsap-broadcast)
```

PHPackages © 2026

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