Download the PHP package nml/whatsapp-notifier without Composer

On this page you can find all versions of the php package nml/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

NML WhatsApp Notifier

NML WhatsApp Notifier is a lightweight, standalone PHP and Laravel package designed for sending WhatsApp messages via Meta Cloud API. It provides a direct client for sending plain text and template messages, as well as a native Laravel Notification Channel for seamless application integration.

Features

Package Architecture

Requirements

Installation

Option 1: Via Composer (Recommended)

Once published to Packagist, run:

Option 2: Via Local Path (Development)

Add the local repository path to your application's composer.json:

Then run composer update:

Publish Configuration

Publish the package configuration file to your Laravel app:

Environment Configuration

Configure the required environment variables in your application .env file:

Environment Variables Description

Usage Examples

1. Direct Usage via WhatsAppClient

Send Plain Text Message

Send Template Message

2. Usage via Laravel Notification Channel

Create a notification class using Artisan:

Configure the notification class to use WhatsAppChannel:

Define the recipient routing method in your User model:

Dispatch the notification:

Testing

Run unit tests via PHPUnit:

Publishing to Packagist

  1. Push code to GitHub:

  2. Tag version release:

  3. Submit https://github.com/Premod1/nml-whatsapp-notifier on Packagist.org.

Troubleshooting

Error Code 131030: Recipient phone number not in allowed list

Cause

When using Meta WhatsApp Sandbox / Test Phone Number, Meta restricts outgoing messages strictly to recipient numbers that have been manually added and verified in the Meta Developer Portal.

Solution

  1. Log in to Meta Developer Portal.
  2. Navigate to your App -> WhatsApp -> API Setup.
  3. Locate the "To" phone number dropdown and click Manage phone number list.
  4. Add the target phone number (with country code) and enter the OTP code received on that phone number.

License

This package is open-source software licensed under the MIT License.


All versions of whatsapp-notifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/notifications Version ^10.0|^11.0|^12.0
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 nml/whatsapp-notifier contains the following files

Loading the files please wait ...