Download the PHP package vibrantcoder/whatsapp-notifier without Composer

On this page you can find all versions of the php package vibrantcoder/whatsapp-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package whatsapp-notifier

WhatsApp Notifier for Laravel

Reusable Laravel package for sending WhatsApp messages through multiple drivers (Twilio, Meta Cloud API) with dynamic templates, queues, events, and DB logging. Works with Laravel 10, 11, 12, 13.


Features


Requirements


Installation

There are three ways to install — pick the one that matches where the package lives.

Option 1 — Local path repository (during development)

Use this when the package source lives inside or next to your Laravel app (e.g. packages/vibrantcoders/whatsapp-notifier).

In your Laravel app's composer.json:

The @dev constraint is required because path repos publish as dev-main. symlink: true means edits inside the package are picked up immediately.

Option 2 — Private Git repository

Option 3 — Public Packagist (once published)


Setup (after install)

One command does everything — publishes config, migrations, env keys, and runs migrate:

Service provider and facade are auto-discovered — no manual registration in config/app.php is required.

For the manual breakdown, see INSTALL.md.


Environment variables

Add the relevant block to your .env:

⚠️ The Meta temporary access token expires every 24 hours. For production, generate a System User token from Meta Business Settings (60-day or never-expiring).


Usage

1. Inline free-form message (Meta or Twilio)

Free-form messages are only deliverable in the 24-hour customer-care window on Meta. Use templates outside that window.

2. Meta template via the registry (recommended)

Declare each template once in config/whatsapp.php:

Then in your code:

3. Meta template via the fluent builder

Use this when the template has dynamic header/buttons that vary per call, or when you don't want to maintain the registry.

4. Override driver per call

5. Force sync or queue

6. Event-driven delivery (recommended for app code)

Laravel auto-discovers the listener from the typehint — no EventServiceProvider mapping required (Laravel 11+).


Supported template features

Feature Builder method Registry key
Body {{1}} {{2}} body(...$values) 'body' => [...]
Named body {{name}} bodyNamed(['k' => 'v']) (use builder)
Header text headerText('...') 'header' => 'text'
Header image headerImage($url) 'header' => 'image'
Header video headerVideo($url) 'header' => 'video'
Header document headerDocument($url, $filename) 'header' => 'document'
Header location headerLocation($lat, $lng, $name, $addr) (use builder)
URL button urlButton($index, $value) 'buttons' => [['type' => 'url']]
Quick-reply button quickReplyPayload($index, $payload) 'buttons' => [['type' => 'quick_reply']]
Copy-code button copyCodeButton($index, $code) 'buttons' => [['type' => 'copy_code']]
Raw passthrough withRawComponents([...]) —

Custom drivers

Register in any service provider's boot():

Then WhatsApp::via('myprovider')->message(...)->send(...).


Logged messages

Every attempt — sync or queued, success or failure — is persisted:

Columns:

Column Type
id bigint
driver varchar (32)
to varchar (32)
body text
status pending|sent|failed
provider_id varchar
error text (nullable)
response json (nullable)
sent_at timestamp
created_at timestamp
updated_at timestamp

Quick test (5 minutes, no real templates needed)

You should receive a real WhatsApp message and see a row in the whatsapp_messages table with status = sent and a provider_id returned by Meta.


Troubleshooting

Symptom Cause / fix
(#132001) Template name does not exist in the translation Template not approved, wrong name, or wrong language code. Check WhatsApp Manager.
(#131030) Recipient phone number not in allowed list You're using Meta's free test number — add the recipient under "Send messages to" in API Setup.
Invalid OAuth access token Temp token expired (24h). Generate a new one in API Setup, paste into .env, run php artisan config:clear.
Meta template alias [...] is not registered Add the alias to meta_templates in config/whatsapp.php, or use builder mode.
Sends silently fail outside 24h window Meta only allows template messages outside the customer-care window. Use metaTemplate(), not message().
Queue jobs not running Make sure a worker is running: php artisan queue:work --queue=whatsapp

Roadmap


License

MIT © VibrantCoders


All versions of whatsapp-notifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^10.0|^11.0|^12.0|^13.0
illuminate/events Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vibrantcoder/whatsapp-notifier contains the following files

Loading the files please wait ...