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. [Utility &amp; Helpers](/categories/utility)
4. /
5. inotechno/watsap-broadcast

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 2d 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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

866d 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)
```

###  Alternatives

[laraveljutsu/zap

A flexible, performant, and developer-friendly schedule management system for Laravel

1.5k117.0k1](/packages/laraveljutsu-zap)[based/momentum-modal

Build dynamic modal dialogs for your Inertia-powered Laravel apps

463453.4k1](/packages/based-momentum-modal)[lochmueller/sourceopt

Optimization of the final page: reformatting the (x)HTML output &amp; removal of new-lines, comments and generator-info including search and replace strings using your regular expressions. In addition combines all SVG selected within content-elements into one &lt;symbol&gt; file and replaces &lt;img&gt; by &lt;use&gt;.

24587.7k2](/packages/lochmueller-sourceopt)[datomatic/laravel-enum-helper

Simple opinionated framework agnostic PHP 8.1 enum helper for Laravel

35267.3k7](/packages/datomatic-laravel-enum-helper)

PHPackages © 2026

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