An open API service indexing awesome lists of open source software.

https://github.com/atomjoy/smsapisms

Laravel sms notification channel with SmsApi. Send SMS in Laravel. Laravel SMS Notifications allows you to send SMS from your Laravel application.
https://github.com/atomjoy/smsapisms

laravel-sms laravel-sms-channel laravel-sms-notifications laravel-sms-sender laravel-smsapi sms-laravel smsapi-laravel

Last synced: 2 months ago
JSON representation

Laravel sms notification channel with SmsApi. Send SMS in Laravel. Laravel SMS Notifications allows you to send SMS from your Laravel application.

Awesome Lists containing this project

README

        

# Smsapi Laravel sms notifications

Laravel SMS Notifications allows you to send SMS from your Laravel application.

## Install

```sh
composer require "atomjoy/smsapisms"
```

## Config

config/smsapisms.php

```sh
php artisan vendor:publish --tag=smsapisms-config --force
```

## Service

```php
return [
'api_service' => 'pl', // Default smsapi.pl service. Options: [ pl, com, se, bg ]
'api_token' => 'EMPTY_API_TOKEN', // Api bearer token
'api_from' => 'Test', // Default sms sender name
'api_encoding' => 'utf-8', // Default charset
'api_details' => true, // More response details
'api_test' => false, // Test mode
];
```

## Routes

routes/web.php

```php
notify(
new SendSms(
'New Order [%idzdo:smsapi.pl/panel%]',
['48100100100', '44200200200']
)
);

// Or with
Notification::sendNow(
$user,
new SendSms(
'New Order [%idzdo:smsapi.pl/panel%]',
['48100100100', '44200200200']
)
);
} catch (\Exception $e) {
return $e->getMessage();
}

return 'Message has been send.';
});
```

## Server

```sh
php artisan serve --host=localhost --port=8000
```

## Events

```php