PHPackages                             confidence/facebook\_whatsapp\_business - 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. confidence/facebook\_whatsapp\_business

ActiveLibrary[API Development](/categories/api)

confidence/facebook\_whatsapp\_business
=======================================

Facebook Whatsapp Business Package

11.8k1PHP

Since Jun 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Confidence1851/facebook_whatsapp_business)[ Packagist](https://packagist.org/packages/confidence/facebook_whatsapp_business)[ RSS](/packages/confidence-facebook-whatsapp-business/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Easier way to implent Official whatsapp business api
====================================================

[](#easier-way-to-implent-official-whatsapp-business-api)

public function FWBLogin() { $baseUrl = env("FWB\_BASE\_URL"); $FWB = new FWBAuth($baseUrl); $login = $FWB-&gt;loginAdmin("admin", "oldpassword", "newpassword");

```
  if ($login["success"] && $login["status_code"] == 200) {
     // Login successful
  }

  // Do some stuff

```

}

public function FWBContacts(array $contactsList) { $baseUrl = env("FWB\_BASE\_URL"); $FWBContacts = new FWBContacts($baseUrl); $FWBContacts-&gt;setAuthToken(env("FWB\_TOKEN")); $process = $FWBContacts-&gt;validate($contactsList, "wait", true); return $process; }

public function FWBSend() { $baseUrl = env("FWB\_BASE\_URL"); $FWBMessage = new FWBMessage($baseUrl); $FWBMessage-&gt;setAuthToken(env("FWB\_TOKEN"));

```
  // For template text message

  // $FWBMessage->setTemplateBody(
  //    "body",
  //    [
  //       [
  //          "type" => "text",
  //          "text" => "Hello Confidence"
  //       ],
  //    ]
  // );
  // $FWBMessage->buildTemplate(
  //    "my_namespace_id",
  //    "template_name"
  // );

  // $process = $FWBMessage->sendWithTemplate("234700000000");

  // dd($process);

  // For document

  $FWBMessage->setTemplateHeader("document", "http://www.africau.edu/images/default/sample.pdf" , "Sample.pdf");
  $FWBMessage->setTemplateBody(
     "body",
     [
        [
           "type" => "text",
           "text" => "Hello Confidence"
        ]
     ]
  );

  $FWBMessage->buildTemplate(
      "my_namespace_id",
     "template_name",
  );

  $process = $FWBMessage->sendWithTemplate("234700000000");
  return $process;

```

}

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

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://avatars.githubusercontent.com/u/56392313?v=4)[Confidence Ugolo](/maintainers/Confidence1851)[@Confidence1851](https://github.com/Confidence1851)

---

Top Contributors

[![Confidence1851](https://avatars.githubusercontent.com/u/56392313?v=4)](https://github.com/Confidence1851 "Confidence1851 (16 commits)")

### Embed Badge

![Health badge](/badges/confidence-facebook-whatsapp-business/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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