Skip to content

Althinect/laravel-sendlk

Repository files navigation

Very short description of the package

Latest Version on Packagist Total Downloads GitHub Actions

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.

Installation

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

Usage

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.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

About

Laravel package for Send.lk SMS Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages