Download the PHP package waapi/waapi-laravel-sdk without Composer
On this page you can find all versions of the php package waapi/waapi-laravel-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waapi/waapi-laravel-sdk
More information about waapi/waapi-laravel-sdk
Files in waapi/waapi-laravel-sdk
Package waapi-laravel-sdk
Short Description WaAPI Laravel Package
License MIT
Homepage https://github.com/WaAPIapp/waapi-laravel-sdk
Informations about the package waapi-laravel-sdk
WaAPI Laravel Package
Laravel Package to use with waapi.app.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Please adapt your .env with your instance ID and Token which can be obtained from your API Tokens
Replace with your token and your instance ID
Usage
Webhook Listener
The package provides a webhooks endpoint to handle incoming webhooks. Simply update your instance with the event types you want to listen to and the endpoint.
Make sure your app is running on a publicly availabel domain. Locally the webhooks won't work.
Create an event listener to listen on the webhook events
new Message example:
QR Code change example:
Register your listener in app/Providers/EventServiceProvider.php
if autodiscovery for events is disabled
Example for WaAPIMessageListener
:
Available events:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of waapi-laravel-sdk with dependencies
illuminate/contracts Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.14.0
waapi/waapi-php-sdk Version ^1.0