appsdept / lankabell-sms
A simple package to connect LankaBell SMS Api, with 2factor Authentication
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/appsdept/lankabell-sms
This package is auto-updated.
Last update: 2025-12-05 00:35:21 UTC
README
Introduction
AppsDept LankaBell SMS Library provides a simple interface to send SMSs
License
Laravel LankaBell SMS Library is open-sourced software licensed under the MIT license.
Installation
Require from composer
composer require appsdept/lankabell-sms
Publish the Provider
php artisan vendor:publish --provider="AppsDept\LaravelLankaBellSMS\LankaBellServiceProvider"
Migrate
php artisan migrate
Environment Setup
Generate your LB_Key from your dashboard.
Add the following inside your .env
LB_SECURE_KEY="LB_Key750 YouKeyGoesHere="
LB_API_PORT=4090
Usage
2Factor Auth
This will Text a Random code and returns the generated code.
$code = LankaBellSMS::TwoFactorAuth('071XXXXXXX');
return $code;
Send a SMS to a Number
LankaBellSMS::SendText('071XXXXXXX', 'Message that need to be sent');
The Send messages will be stored in the databases.