faisalbz / wselah-api
v0.0.2
2023-03-13 15:59 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Lightweight PHP library for WhatsApp API to send the whatsappp messages in PHP provided by wselah.net
Installation
use Composer:
composer require faisalbz/wselah-api
Example usage
<?php use Faisalbz\WselahApi\Wselah; $api_token="W85PH528XMClpVvzGSbzTmqAdl7SWO5o3vRAcvU7NYRGMMoL0T9MyAtxI0rNchOQ"; // wselah.net token $device_id="4575845445"; // wselah.net device id $client = new Wselah($api_token,$device_id); $to="put_your_whatsapp_number_here"; // ex:966500000000 $text="Hello world"; $api=$client->sendWhatsapp($to,$text); dd($api);
NOTE: you need replace device_id and token with yours in wselah.net account if you don't have account create one from here
Send Message
- $to : your number for testing with international format e.g. 966500000000
- $text : Message text, UTF-8 or UTF-16 string with emoji .
Support
Use Issues to contact me