eyuva / laravel-whatsapp-btn
Laravel package to make click to chat whatsapp button
Installs: 1 248
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.5.9
- laravel/framework: >=5.2
This package is auto-updated.
Last update: 2025-05-29 01:00:03 UTC
README
Laravel package to make click to chat WhatsApp button.
Installation
Step 1. Install package using Composer
composer require "eyuva/laravel-whatsapp-btn":"*"
Step 3. Add the facade reference in config/app.php to your aliases array.
'WhatsappBtn' => \Eyuva\WhatsappBtn\WhatsappBtnFacade::class,
Step 4. Start Using the package
Done!
Usage
Step 1. To embed a Button in view
{!! WhatsappBtn::(<number>,<message>,<options>) !!}
eg. options: ['label' => 'Click to Chat', 'class' => 'btn btn-success']
Step 2. To generate a http link
WhatsappBtn::(<number>,<message>);
Contribute
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on GitHub.
Loveware
If you Love It then Star It
Contributors
License
The code in this repo are open-sourced software licensed under the MIT license