Download the PHP package ahmedtaha-dev/whatsapp-bevatel-provider without Composer

On this page you can find all versions of the php package ahmedtaha-dev/whatsapp-bevatel-provider. 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-bevatel-provider

WhatsApp Bevatel provider

PHP helpers for sending template messages through the Bevatel WhatsApp API from Laravel (or any app using Laravel’s HTTP client and config).

Requirements

Installation

Configuration

Environment variables

Set these in .env (or your runtime):

Variable Description
BEVATEL_ACCOUNT_ID Account identifier sent as api_account_id
BEVATEL_ACCESS_TOKEN Token sent as api_access_token
BEVATEL_URL Full URL of the Bevatel WhatsApp send endpoint (POST)

Publish config (optional)

This copies config/whatsapp.php, which reads the same env keys above.

Register the service provider

The package does not declare Laravel auto-discovery. Register it manually:

Laravel 11+ — in bootstrap/providers.php:

Laravel 9–10 — in config/app.php under providers:

Optional: register the facade alias in config/app.php (aliases) so you can call WhatsApp::message() instead of resolving WhatsappService manually:

Usage

Build a template payload with WhatsappMessageBuilder, then call send() to POST JSON to BEVATEL_URL with the headers Bevatel expects (api_account_id, api_access_token, Content-Type: application/json).

Minimal example (template + phone + inbox)

Body parameters

Map template body placeholders to the API shape your Bevatel template expects (often an array of parameter objects):

Header and media

Buttons

Each addButton() sets one button (index increments automatically):

Enums

Exact template names, languages, and parameter shapes must match what Bevatel approved for your WhatsApp Business account.

Response

send() returns Illuminate\Http\Client\Response from Laravel’s HTTP client, so you can use successful(), json(), body(), status codes, etc.

License

MIT. See the package composer.json if a separate license file is added later.


All versions of whatsapp-bevatel-provider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^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 ahmedtaha-dev/whatsapp-bevatel-provider contains the following files

Loading the files please wait ...