This is a package for integrating Send.lk (https://send.lk) with a Laravel application. The packages supports custom configurations for credentials and logs for all sent messages. Moreover, these message logs can be pruned with a command which can be set up with scheduler for scheduled pruning.
NOTE - This package is designed to be used for internal purposes of Althinect. However, you're free to use or modify the codebase. That being said, use at your own discretion as the package might have breaking changes in the future.
You can install the package via composer:
composer require althinect/laravel-sendlk
After installation. Run:
php artisan vendor:publish --provider="Althinect\LaravelSendlk\LaravelSendlkServiceProvider" --tag=config
LaravelSendlkFacade::send(['0000000000'], 'This is a test message');
The send
method will accept two parameters. The first parameter is an array with the phone numbers to the send the message to. The second parameter is the message
to send. If the first parameter is not an array the package will throw an error.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.