PHPackages                             fahrigunadi/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fahrigunadi/whatsapp

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

fahrigunadi/whatsapp
====================

This is my package whatsapp

v1.5.0(4w ago)090MITPHPPHP ^8.2CI passing

Since Jul 2Pushed 4w agoCompare

[ Source](https://github.com/fahrigunadi/wa-sdk)[ Packagist](https://packagist.org/packages/fahrigunadi/whatsapp)[ Docs](https://github.com/fahrigunadi/whatsapp)[ GitHub Sponsors]()[ RSS](/packages/fahrigunadi-whatsapp/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (52)Versions (25)Used By (0)

whatsapp
========

[](#whatsapp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/425683a0d5b08a26cfe444d7dd2774946177cee3db3d20013fd46e083d5e52d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666168726967756e6164692f77686174736170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fahrigunadi/whatsapp)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e94ab4e231576a1f07e41033cbff6d83f7c793e52da899202234f858d9383b43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666168726967756e6164692f77686174736170702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/fahrigunadi/whatsapp/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c9bead4938959cf895905619bcb5dc0c0c5b980fce1abca9016cfc9fde53abe5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666168726967756e6164692f77686174736170702f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/fahrigunadi/whatsapp/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f5c0bc02a315b330c28f60cb65cc4345e1431a9ae24e2757520235f7e9181f12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666168726967756e6164692f77686174736170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fahrigunadi/whatsapp)

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

[](#installation)

You can install the package via composer:

```
composer require fahrigunadi/whatsapp
```

You can publish the config file with:

```
php artisan vendor:publish --tag="whatsapp-config"
```

This is the contents of the published config file:

```
return [
    /**
     * --------------------------------------------------------------------------
     * WhatsApp Driver
     * --------------------------------------------------------------------------
     *
     * This option defines which driver implementation to use for sending
     * WhatsApp messages. You may configure your own custom driver or use
     * one of the available drivers such as 'aldinokemal', 'wuzapi', etc.
     *
     * Supported: "aldinokemal", "wuzapi"
     */
    'driver' => env('WHATSAPP_DRIVER', 'aldinokemal'),

    /**
     * --------------------------------------------------------------------------
     * WhatsApp Username
     * --------------------------------------------------------------------------
     *
     * The username used to authenticate with the selected WhatsApp provider.
     * This value is typically provided by the API service you are integrating with.
     */
    'username' => env('WHATSAPP_USERNAME'),

    /**
     * --------------------------------------------------------------------------
     * WhatsApp Password or Token
     * --------------------------------------------------------------------------
     *
     * The password or access token required to authenticate with the provider.
     * This credential should be kept secure and never exposed publicly.
     */
    'password' => env('WHATSAPP_PASSWORD'),

    /**
     * --------------------------------------------------------------------------
     * WhatsApp Base URL
     * --------------------------------------------------------------------------
     *
     * The base endpoint URL for the WhatsApp API. This is where all requests
     * will be sent. Make sure the URL is correct and includes the necessary
     * protocol (http or https).
     */
    'base_url' => env('WHATSAPP_BASE_URL'),
];
```

Usage
-----

[](#usage)

```
whatsapp()
    ->to('+628XXXXXXXXXX')
    ->message('Hello World')
    ->send();

whatsapp()
    ->to('+628XXXXXXXXXX')
    ->image('https://files.f-g.my.id/images/dummy/botol-2.jpg')
    ->send();

\FahriGunadi\Whatsapp\Whatsapp::to('+628XXXXXXXXXX')
    ->image('https://files.f-g.my.id/images/dummy/botol-2.jpg')
    ->message('Image Caption')
    ->send();

// handle webhook in controller
public function webhook(\FahriGunadi\Whatsapp\WebhookRequest $request)
{
    // get webhook sender
    $sender = $request->sender();

    // get webhook message text
    $text = $request->messageText();

    // get webhook chat room
    $room = $request->chat();

    // reply webhook message
    $request->reply()->message("Hello $sender, you said: $text")->send();

    // ....
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Fahri Gunadi](https://github.com/fahrigunadi)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.3% 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 ~19 days

Total

21

Last Release

29d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7522d3b36729883e1931d588513a718439d758249eb8f81053ea79de5c34c3c7?d=identicon)[fahrigunadi](/maintainers/fahrigunadi)

---

Top Contributors

[![fahrigunadi](https://avatars.githubusercontent.com/u/85858049?v=4)](https://github.com/fahrigunadi "fahrigunadi (69 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelwhatsappFahri Gunadi

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329575.9k35](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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