PHPackages                             advhub/meta-whatsapp-laravel - 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. advhub/meta-whatsapp-laravel

ActiveLibrary[API Development](/categories/api)

advhub/meta-whatsapp-laravel
============================

Laravel package for WhatsApp Cloud API (Meta) integration.

v1.0.0(4mo ago)01MITPHPPHP &gt;=7.3

Since Feb 22Pushed 4mo agoCompare

[ Source](https://github.com/ricking007/meta-whatsapp-laravel)[ Packagist](https://packagist.org/packages/advhub/meta-whatsapp-laravel)[ RSS](/packages/advhub-meta-whatsapp-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

advhub/meta-whatsapp-laravel
============================

[](#advhubmeta-whatsapp-laravel)

Pacote Laravel para integração com a **WhatsApp Cloud API (Meta)**.

Recursos
--------

[](#recursos)

- Envio de mensagem de texto
- Envio de imagem por link
- Envio de documento por link
- Envio de template
- Marcar mensagem como lida
- Verificação de webhook (`hub.challenge`)
- Validação opcional de assinatura (`X-Hub-Signature-256`)
- Extração de status (`sent`, `delivered`, `read`, etc.)

Instalação (Composer)
---------------------

[](#instalação-composer)

```
composer require advhub/meta-whatsapp-laravel
```

Para desenvolvimento local (path repository):

```
{
  "repositories": [
    {
      "type": "path",
      "url": "packages/advhub/meta-whatsapp-laravel"
    }
  ],
  "require": {
    "advhub/meta-whatsapp-laravel": "*"
  }
}
```

Depois:

```
composer update advhub/meta-whatsapp-laravel
```

Publicar configuração
---------------------

[](#publicar-configuração)

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

Arquivo publicado: `config/meta-whatsapp.php`

Variáveis de ambiente
---------------------

[](#variáveis-de-ambiente)

```
META_WA_BASE_URL=https://graph.facebook.com
META_WA_GRAPH_VERSION=v23.0
META_WA_PHONE_NUMBER_ID=
META_WA_ACCESS_TOKEN=
META_WA_VERIFY_TOKEN=
META_WA_APP_SECRET=
META_WA_DEFAULT_COUNTRY_CODE=55
META_WA_TIMEOUT=15
```

Uso
---

[](#uso)

```
use AdvHub\MetaWhatsApp\MetaWhatsAppClient;

$meta = app(MetaWhatsAppClient::class);
$meta->sendText('11999999999', 'Olá!');
```

### Facade

[](#facade)

```
MetaWhatsApp::sendText('11999999999', 'Olá!');
```

### Imagem

[](#imagem)

```
$meta->sendImage('11999999999', 'https://site.com/imagem.jpg', 'Legenda');
```

### Documento

[](#documento)

```
$meta->sendDocument('11999999999', 'https://site.com/arquivo.pdf', 'arquivo.pdf', 'Segue em anexo');
```

### Template

[](#template)

```
$meta->sendTemplate(
    '11999999999',
    'notificacao_tarefa',
    'pt_BR',
    [
        [
            'type' => 'body',
            'parameters' => [
                ['type' => 'text', 'text' => 'Ricardo'],
                ['type' => 'text', 'text' => '#123'],
            ],
        ],
    ]
);
```

Webhook (verify + assinatura)
-----------------------------

[](#webhook-verify--assinatura)

```
use AdvHub\MetaWhatsApp\Support\WebhookVerifier;
use Illuminate\Http\Request;

public function verify(Request $request, WebhookVerifier $verifier)
{
    $challenge = $verifier->verifyChallenge($request);
    if ($challenge === null) {
        return response()->json(['message' => 'Token inválido'], 403);
    }

    return response($challenge, 200);
}

public function handle(Request $request, WebhookVerifier $verifier)
{
    if (!$verifier->hasValidSignature($request)) {
        return response()->json(['message' => 'Assinatura inválida'], 401);
    }

    $statuses = $verifier->extractStatuses($request->all());
    // atualizar dt_lido etc.

    return response()->json(['ok' => true]);
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance76

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

133d ago

### Community

Maintainers

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

---

Top Contributors

[![ricking007](https://avatars.githubusercontent.com/u/28935377?v=4)](https://github.com/ricking007 "ricking007 (1 commits)")

### Embed Badge

![Health badge](/badges/advhub-meta-whatsapp-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816334.1k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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