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.
- Host: GitHub
- URL: https://github.com/atomjoy/smsapisms
- Owner: atomjoy
- Created: 2024-05-17T09:24:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-17T12:26:42.000Z (about 1 year ago)
- Last Synced: 2025-02-21T17:05:08.554Z (3 months ago)
- Topics: laravel-sms, laravel-sms-channel, laravel-sms-notifications, laravel-sms-sender, laravel-smsapi, sms-laravel, smsapi-laravel
- Language: PHP
- Homepage: https://github.com/atomjoy/smsapisms
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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