Download the PHP package octopusteam/waapi-laravel without Composer
On this page you can find all versions of the php package octopusteam/waapi-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download octopusteam/waapi-laravel
More information about octopusteam/waapi-laravel
Files in octopusteam/waapi-laravel
Package waapi-laravel
Short Description WAAPI whatsapp api integration for Laravel
License MIT
Homepage https://github.com/octopus-software-team/waapi-laravel
Informations about the package waapi-laravel
WAAPI Laravel Package
This package provides a simple and expressive API for interacting with the WAAPI (WhatsApp API) service within a Laravel application.
Features
- Send text messages, media, templates, stickers, voice notes, locations, and contacts.
- New Send conversation messages and check contact presence.
- New Manage Devices and Apps (Create, Read, Update, Delete).
- New Check messages status and fetch profile pictures in batch.
- Fluent and expressive API.
- Automatic webhook route registration.
- New
WebhookReceivedevent for incoming data. - Integration with Webhook.site for easy debugging.
- Artisan command to renew Webhook.site token.
Installation
Publish the configuration file:
This will create a config/waapi.php file in your application.
Configuration
Update your .env file with your WAAPI credentials:
Usage
Sending Messages
You can send messages using the Waapi facade or by injecting the Waapi class.
Device Status & QR Code
Message Status
Devices Management
Apps Management
Profile & Presence
Webhook Settings API
Webhook Handling
The package can automatically register a webhook route to handle incoming data from WAAPI. To enable this, ensure the following is in your config/waapi.php:
By default, the route is POST /api/webhook/whatsapp.
Events
When a webhook is received, the package fires the OctopusTeam\Waapi\Events\WebhookReceived event. You can listen to this event in your application's EventServiceProvider.
The event contains the webhook data in the $data property.
Webhook.site Integration
For development and debugging, you can use the Webhook.site integration to inspect incoming webhook data.
Artisan Command
To renew your webhook.site token automatically, you can run the following Artisan command. This will generate a new token, update your .env file, and update the webhook URL via the WAAPI service.