Download the PHP package felipedamacenoteodoro/laravel-whatsapp-notification-channel without Composer

On this page you can find all versions of the php package felipedamacenoteodoro/laravel-whatsapp-notification-channel. 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 laravel-whatsapp-notification-channel

Whatsapp Notifications Channel for Laravel

Latest Version on Packagist Total Downloads

This package makes it easy to send Whatsapp notification using WPPCONNECT SERVER) with Laravel.

This package was created based on the telegram notification package.

Thanks to Irfaq Syed for the codebase used here.

The packages is 100% free and opensource, if you are interested in hiring paid support, installation or implementation, Felipe D. Teodoro

Contents

Installation

You can install the package via composer:

Publish config file

Publish the config file:

Setting up your Whatsapp session

Set your venom session WPPCONNECT SERVER and configure your Whatsapp Session:

Proxy or Bridge Support

You may not be able to send notifications if Whatsapp API is not accessible in your country, you can either set a proxy by following the instructions here or use a web bridge by setting the base_uri config above with the bridge uri.

You can set HTTPS_PROXY in your .env file.

Usage

You can now use the channel in your via() method inside the Notification class.

Text Notification

Attach an Audio

Attach a Photo

Attach a Document

Attach a Location

Attach a Video

Attach a GIF File

Routing a Message

You can either send the notification by providing with the whatapp number of the recipient to the to($whatsapp_number) method like shown in the previous examples or add a routeNotificationForWhatsapp() method in your notifiable model:

Handling Response

You can make use of the notification events to handle the response from Whatsapp. On success, your event listener will receive a Message object with various fields as appropriate to the notification type.

For a complete list of response fields, please refer the Venom Whatsapp API's Message object docs.

On-Demand Notifications

Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification. For more details, you can check out the on-demand notifications docs.

Sending to Multiple Recipients

Using the notification facade you can send a notification to multiple recipients at once.

If you're sending bulk notifications to multiple users, the Whatsapp API will not allow more than 30 messages per second or so. Consider spreading out notifications over large intervals of 8—12 hours for best results.

Also note that your bot will not be able to send more than 20 messages per minute to the same group.

If you go over the limit, you'll start getting 429 errors. For more details, refer Whatsapp Api FAQ.

Available Methods

Shared Methods

These methods are optional and shared across all the API methods.

Whatsapp Message methods

For more information on supported parameters, check out these docs.

Whatsapp Location methods

Whatsapp File methods

Whatsapp Contact methods

Simple Whatsapp Api

For simple use, please consider using whatsapp-api instead.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-whatsapp-notification-channel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ext-json Version *
guzzlehttp/guzzle Version ^6.2 || ^7.0
illuminate/contracts Version ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
illuminate/notifications Version ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
illuminate/support Version ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.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 felipedamacenoteodoro/laravel-whatsapp-notification-channel contains the following files

Loading the files please wait ....