royceltd / laravel-bulksms
Easily integrate bulk SMS into laravel app
Installs: 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Language:CSS
Requires
- php: ^8.0|^8.2|^8.3
- illuminate/console: ^8.0|^9.0|^10|^11.0
- illuminate/support: ^8.0|^9.0|^10|^11.0
README
Laravel bulk sms
V2 supports V9 and above use V1 for V8 and below
This package provides a Facade to send SMS from any controller. Open a free account Royce BulkSMS, under API menu click generate API. Copy the API key and paste it in your .env file
API_KEY=apikey SENDER_ID=RoyceLTD
Features
-
Provides a database table for storing sent text. table name:sent_text_messages
-
Receive Instant delivery status. Add webhook url to your bulksms account we'll send you message delivery status back to your application
Installation
Installroyceltd/laravel-bulksms:*
composer require royceltd/laravel-bulksms:*
Run migration
This package shift with a database table that will store sent text. It also provides a simple UI you can view the sent text
php artisan migrate
Usage
Laravel usage
T Open a free account Royce BulkSMS, under API menu click generate API. Copy the API key and paste it in your .env file
API_KEY=apikey SENDER_ID=RoyceLTD
Sending Text message
In order to send text message add facade at the top of your controller and invoke sendSMS method with two parameters Recipient phone number and Message in that order.
Check sample below for guidance.
use RoyceLtd\LaravelBulkSMS\Facades\RoyceBulkSMS; $phone = "071234567"; $message = "Hello world"; RoyceBulkSMS::sendSMS($phone, $message);
Support
We offer free integration. React us via call/whatsapp +254 713727937 developer@roycetechnologies.co.ke
API integration
If you would like to integrate API without using package check docs here: API documentation