4 Jawaly SMS is a Laravel package that provides a method to use forjawaly API services, with a few simple lines of code.
1. Require with Composer
- composer require guzzle/guzzle
- composer require devhereco/forjawaly
Latest Laravel versions have auto dicovery and automatically add service provider - if you're using 5.4.x and below, remember to add it to providers
array at /app/config/app.php
:
// ...
Devhereco\ForJawaly\ServiceProvider::class,
FOR_JAWALY_APP_KEY=
FOR_JAWALY_SECRET=
FOR_JAWALY_SENDER=
This function will allow you to send messages to selected numbers.
Examples:
use Devhereco\ForJawaly\ForJawaly;
ForJawaly::send('966555644047', 'Test Message');
// ForJawaly::send(Receiver Number, Message);
This function will show ForJawaly account balance in your backend.
Examples:
use Devhereco\ForJawaly\ForJawaly;
ForJawaly::balance();