Download the PHP package excelle-insights/whatsapp without Composer

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

Excelle Insights WhatsApp Cloud API

Latest Version PHP

A PHP package for integrating with the Meta WhatsApp Cloud API. Handles OAuth authentication, WABA discovery, message templates, inbound/outbound messaging, webhooks, and HTTP request logging.

Features

Installation

Environment Setup

Create a .env file in your project root:

Quick Start

1. OAuth Authentication

Generate the Meta authorization URL:

Handle the callback (your WHATSAPP_REDIRECT_URI endpoint):

Or use a direct System User token (skip OAuth):

2. Send a Text Message

3. Send a Template Message

4. List Templates

5. Webhook Setup

Incoming media messages (image, video, audio, document, sticker) are automatically downloaded to WHATSAPP_MEDIA_PATH (default uploads/whatsapp) and stored on the message record with media_type, media_url, media_mime_type, media_file_size, caption and wa_media_id.

6. Download Media Manually

Files are stored at {WHATSAPP_MEDIA_PATH}/{YYYY}/{MM}/{DD}/{sha1}.{ext}. Serve them through an authenticated proxy (see examples/media-proxy.php); block direct web access to the storage folder.

Database Migrations

Run the provided Phinx migrations to create the required tables:

Tables created (all prefixed by WHATSAPP_TABLE_PREFIX):

Table Purpose
{prefix}_business_profiles Linked Meta Business/WABA accounts
{prefix}_access_tokens Per-user OAuth tokens
{prefix}_templates Message templates
{prefix}_template_components Template body/header/footer/buttons
{prefix}_messages Inbound and outbound messages
{prefix}_message_media Media attachments
{prefix}_webhook_logs Raw webhook audit logs
http_request_logs API request/response logs (non-prefixed)

Advanced Usage

Custom HTTP Client

Inject a custom HTTP client for testing or custom logging:

Custom PDO Connection

Pass an existing PDO instance:

HTTP Request Logging

All API calls are automatically logged to the http_request_logs table with:

Testing

License

MIT — see LICENSE.


All versions of whatsapp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-pdo Version *
vlucas/phpdotenv Version ^5.6
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 excelle-insights/whatsapp contains the following files

Loading the files please wait ...