andersevenrud / laravel-frontsms
Laravel Front SMS Provider(s)
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/andersevenrud/laravel-frontsms
Requires
- php: >=5.6.4
- andersevenrud/frontsms: ^0.5.0
This package is auto-updated.
Last update: 2025-10-06 15:29:33 UTC
README
Easy SMS with Front.
Contains Notification Channel, Service Provider and a Facade.
Installation
$ composer require andersevenrud/laravel-frontsms
Configuration
In config/app.php
:
'providers' => [
Laravel\FrontSMS\FrontSMSServiceProvider::class,
],
'aliases' => [
'FrontSMS' => Laravel\FrontSMS\Facades\FrontSMS::class
]
Then publish configurations:
$ php artisan vendor:publish
You now have config/frontsms.php
.
Usage
General
use FrontSMS; function something() { $result = FrontSMS::send(12345678, 'hello world!'); }
Notifications
use NotificationChannels\FrontSMS\FrontSMSChannel; use NotificationChannels\FrontSMS\FrontSMSMessage; use Illuminate\Notifications\Notification; class ExampleNotification extends Notification { public function via($notifiable) { return [FrontSMSChannel::class]; } public function toFront($notifiable) { return FrontSMSMessage::create('12345678', 'Hello world!'); } }
Changelog
- 0.6.1 - Updated composer.json
- 0.6.0 - Initial release
License
MIT