Download the PHP package izzuddinmohsin/laravel-whatsapp without Composer

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

Laravel WhatsApp Connector

A simple, clean Laravel package to connect with WhatsApp via Evolution API. Works with Blade, Livewire, Inertia.js — any Laravel stack.

Disclaimer: This package uses unofficial WhatsApp APIs via Evolution API. WhatsApp/Meta may ban numbers that use unofficial APIs. Use at your own risk and consider the official WhatsApp Cloud API for production business use.

Features

Requirements

Installation

Publish the config:

Publish and run migrations (optional but recommended):

Add to your .env:

Note: If you don't need database storage, set WHATSAPP_STORE_MESSAGES=false and WHATSAPP_STORE_WEBHOOKS=false in your .env. You can skip the migration publish step entirely.

Quick Start

Sending Messages

Interactive Messages

Instance Management

Basic Operations

Full Instance CRUD

Webhook Management

Additional API Methods

Multi-Instance Support

Receiving Messages (Webhooks)

The package automatically registers a webhook route at /whatsapp/webhook (configurable).

1. Point Evolution API to your webhook

In your Evolution API instance settings, set the webhook URL to:

Or set it programmatically:

2. Listen to events

Create a listener in your app:

3. Register the listener

Available Events

Event Description Payload
WhatsAppMessageReceived New message received $message (IncomingMessage), $rawPayload
WhatsAppMessageStatusUpdated Status changed (sent/delivered/read) $messageId, $status, $from, $instanceName
WhatsAppConnectionStatusChanged Instance connected/disconnected $status, $instanceName, $rawPayload
InstanceConnected Instance successfully connected $instance (WhatsappInstance model)
InstanceDisconnected Instance disconnected $instance, $reason
QrCodeUpdated New QR code generated $instance, $qrCodeData

Queue Support

Enable async message sending and webhook processing:

When enabled:

Run the queue worker:

Database Storage

When migrations are published and run, the package stores:

whatsapp_instances table

Tracks all WhatsApp instances with their connection status, settings, and QR codes.

whatsapp_messages table

Logs all incoming and outgoing messages with status tracking (sent_at, delivered_at, read_at).

whatsapp_webhooks table

Logs all webhook events with processing status and error tracking.

Disabling Storage

For lightweight usage without database:

Using the Trait

Add WhatsApp messaging to any class:

Available trait methods:

Laravel Notifications

Use WhatsApp as a Laravel notification channel:

Notification Message Types

Add the route to your User model (or any notifiable):

Send it:

Data Cleanup

Clean up old webhooks and messages:

Schedule it in your routes/console.php or app/Console/Kernel.php:

Configuration

Full configuration reference:

Enums

The package provides enums for type-safe usage:

Models

Access stored data via Eloquent models:

Error Handling

Architecture

Roadmap

This package is built with a driver-based architecture, making it easy to swap or add new WhatsApp providers without changing your application code.

Planned Drivers

Driver Status Description
evolution Available Evolution API (unofficial, self-hosted)
meta Planned WhatsApp Cloud API (official, Meta-hosted)

Switching Drivers (Future)

When the Meta driver is available, switching will be as simple as:

Your application code stays the same — WhatsApp::to('...')->text('...') works regardless of which driver is active.

Planned Features

Contributions for any of these are welcome!

Testing

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Security

If you discover a security vulnerability, please email [email protected] instead of opening an issue.

License

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


All versions of laravel-whatsapp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/events Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.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 izzuddinmohsin/laravel-whatsapp contains the following files

Loading the files please wait ...