https://github.com/laravel-notification-channels/sms77
Seven.io (formerly SMS77) notification channel for Laravel
https://github.com/laravel-notification-channels/sms77
Last synced: 8 months ago
JSON representation
Seven.io (formerly SMS77) notification channel for Laravel
- Host: GitHub
- URL: https://github.com/laravel-notification-channels/sms77
- Owner: laravel-notification-channels
- License: mit
- Created: 2020-04-27T22:02:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T20:58:03.000Z (10 months ago)
- Last Synced: 2025-03-29T03:32:12.167Z (9 months ago)
- Language: PHP
- Homepage: https://laravel-notification-channels.com/
- Size: 62.5 KB
- Stars: 7
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Seven.io (formerly SMS77) notifications channel for Laravel
[](https://packagist.org/packages/laravel-notification-channels/sms77)
[](LICENSE.md)
[](https://github.com/laravel-notification-channels/sms77/actions)
[](https://github.styleci.io/repos/259466891)
[](https://scrutinizer-ci.com/g/laravel-notification-channels/sms77)
[](https://packagist.org/packages/laravel-notification-channels/sms77)
This package makes it easy to send notifications using [Seven.io (formerly SMS77)](https://www.seven.io) with Laravel.
## Contents
- [Installation](#installation)
- [Setting up the Seven.io service](#setting-up-the-SMS77-service)
- [Usage](#usage)
- [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)
## Installation
This package can be installed via composer:
```composer require laravel-notification-channels/sms77```
### Setting up the SMS77 service
1. Create an account and get the API key [here](https://www.seven.io)
2. Add the API key to the `services.php` config file:
```php
// config/services.php
...
'sms77' => [
'api_key' => env('SEVEN_API_KEY')
],
...
```
## Usage
You can use this channel by adding `SMS77Channel::class` to the array in the `via()` method of your notification class. You need to add the `toSms77()` method which should return a `new SMS77Message()` object.
```php
from('Max')
->debug();
}
}
```
### Available Message methods
- `getPayloadValue($key)`: Returns payload value for a given key.
- `content(string $message)`: Sets SMS message text.
- `to(string $number)`: Set recipients number.
- `from(string $from)`: Set senders name.
- `delay(string $timestamp)`: Delays message to given timestamp.
- `noReload()`: Disables reload lock.
- `debug()`: Enables debug mode.
- `unicode()`: Sets message encoding to unicode.
- `flash()`: Sends SMS as flash message.
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
```
## Security
If you discover any security related issues, please email mail@mxschll.com instead of using the issue tracker.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Maximilian Schöll](https://github.com/mxschll)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.