| Package Data | |
|---|---|
| Maintainer Username: | andersevenrud |
| Maintainer Contact: | andersevenrud@gmail.com (Anders Evenrud) |
| Package Create Date: | 2017-05-15 |
| Package Last Update: | 2017-06-23 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-07 03:05:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 35 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
Easy SMS with Front.
Contains Notification Channel, Service Provider and a Facade.
$ composer require andersevenrud/laravel-frontsms
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.
use FrontSMS;
function something() {
$result = FrontSMS::send(12345678, 'hello world!');
}
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!');
}
}
MIT