Download the PHP package shadowbane/laravel-wablas without Composer

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

Laravel Wablas

Total Downloads

About

This package provides easy integration with Wablas Indonesia, provider for sending WhatsApp message via HTTP API.

Installation

install the package via composer:

Publishing Config

Usage

Configuration

add the following value to your .env file

WABLAS_ENDPOINT Fill it with the url for Wablas API Endpoint.

WABLAS_TOKEN This is the token generated from your Wablas account.

WHATSAPP_NUMBER_FIELD This is where you store the user's WhatsApp number in users table.

WHATSAPP_NUMBER_JSON_FIELD only fill this if you store user's WhatsApp number on JSON column in database, for example, the data might look like this:

DEBUG_WHATSAPP_NUMBER This is used when your APP_ENV is set to 'production' and 'APP_DEBUG' is set to true, to prevent sending it to real user.

Sending Text Message

You can send text message using 'via' method inside notification class.

app/notifications/WhatsAppNotification:

Change token

If your application has multiple token for multiple purpose, you can chain token($token) method to your LaravelWablasMessage instance

Send Using The Notifiable Trait

If you want to send it via notifiable, you can refer to this example:

Then, you can trigger it with:

Sending to Multiple Users

This packages allows array to be passed as parameter in to() methods. As Wablas allows comma-separated values as phone number, we automatically implode the array, and send it as comma-separated value to Wablas API.

Example:

If you prefer to send it to notifiables, you can send it via notification facade.

Notes

If you send it to notifiable, please make sure your WHATSAPP_NUMBER_FIELD reflecting the field where you store your user's WhatsApp number.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

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

Contributing

Please see CONTRIBUTING for details.


All versions of laravel-wablas with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ^8.0
illuminate/support Version ^8.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 shadowbane/laravel-wablas contains the following files

Loading the files please wait ....