Download the PHP package susheelbhai/laratsapp without Composer
On this page you can find all versions of the php package susheelbhai/laratsapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download susheelbhai/laratsapp
More information about susheelbhai/laratsapp
Files in susheelbhai/laratsapp
Package laratsapp
Short Description this packae can be used to send whatsapp message using some service providers api
License MIT
Informations about the package laratsapp
Send WhatsApp message to custom phone number
Installation
Laravel
Require this package in your composer.json and update composer. This will download the package.
composer require susheelbhai/laratsapp
Configuration
Vendor Publish
Publish config files using the following command
Final Step
Add environment valriable by runnung the command
go to .env file and put value of the required variables
Application Guide
Import facade at the top of the class after namespace
Create $data variable and call the facade
Text message example
Text otp example
Media message example
Make sure media url is available on live server and accessible publicly
You can aslo use this package with laravel notification class
add channel name whatsapp in via method. following is the example
Now add the other method by which you want to send the message. you can use 1 or more from the following
Mock Provider & Inbox (local testing)
Use the mock provider to test WhatsApp/OTP flows locally without a real WhatsApp account or API keys — like Mailpit, but for WhatsApp.
Set the endpoint to mock in .env (and enable sending):
When WHATSAPP_END_POINT=mock, default_provider resolves to mock
automatically. Messages are not sent to a real gateway — each one is
captured into a file-based inbox (storage/app/whatsapp_mock) and shown in the
WhatsApp tab of the unified message inbox provided by laravel-basekit:
There you can view each message (body, recipient, extracted OTP with copy button, type, time), mark read/unread, delete individual messages, search, and clear all — the same feature set as the email inbox.
Captured messages are also available programmatically:
Notes:
- Capture happens only when the mock provider is active. The inbox UI (in
basekit) is registered only when
APP_ENVis notproduction, so real OTPs are never exposed. - In non-production, the service redirects to
WHATSAPP_TEST_NUMBER. - Switch back to a real provider by setting
WHATSAPP_END_POINTto a real API endpoint — no code changes required.
License
This Multi Auth Package is developed by susheelbhai for personal use software licensed under the MIT license