Download the PHP package zapwize/laravel without Composer
On this page you can find all versions of the php package zapwize/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel
Laravel Zapwize
This package provides a simple and expressive way to interact with the Zapwize WhatsApp Web API in your Laravel applications. Send text messages, images, videos, documents, and more with ease.
Features
- Fluent and easy-to-use API
- Send various message types: text, image, video, audio, document, location, contact, poll
- Asynchronous message sending using Laravel Queues
- Webhook handling for incoming messages and status updates
- Secure webhook signature verification
- Automatic caching of server information for better performance
- Configurable logging and connection settings
Installation
You can install the package via composer:
Configuration
-
Publish the configuration file:
This will create a
config/zapwize.phpfile in your application. - Add the following environment variables to your
.envfile:
Requirements
- PHP 8.2 or higher
- Laravel 9, 10, 11 or 12
Usage
You can use the Zapwize facade to access the client methods.
Sending Messages
Text Message
Image Message
Video Message
Audio Message
Document Message
Location Message
Contact Message
Poll Message
Asynchronous Sending
To send messages without blocking the main thread, you can use the sendMessageAsync method. Make sure your Laravel Queue is configured correctly.
Webhooks
To handle incoming messages and status updates, you need to set up a webhook.
- In your
config/zapwize.php, setwebhook.enabledtotrueand configure thewebhook.urlandwebhook.secret. - The package automatically registers the webhook route at
/zapwize/webhook. You can customize this in the config file. -
Listen for the
Zapwize\Laravel\Events\MessageReceivedevent to process incoming messages:In your
EventServiceProvider.php:Create the listener:
Other Methods
Check if a number is a WhatsApp number
Get Server Information
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/events Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/queue Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
ratchet/pawl Version ^0.4.3