-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unifonic #113
base: master
Are you sure you want to change the base?
Unifonic #113
Conversation
@atymic thanks for your support and fabulous effort in this project, please any update about this channel. |
.gitignore
Outdated
@@ -0,0 +1,6 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank
.gitignore
Outdated
build | ||
composer.phar | ||
composer.lock | ||
.phpunit.result.cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline for styleci :P
|
||
Take a look at our [FAQ](http://laravel-notification-channels.com/) to see our small list of rules, to provide top-notch notification channels. | ||
|
||
## Contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you highlight the main markets for this SMS provider please?
README.md
Outdated
``` bash | ||
composer require laravel-notification-channels/unifonic | ||
``` | ||
This package will register itself automatically if your Laravel 5.5+, trough Package auto-discovery. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove this since we dont support below this
README.md
Outdated
|
||
In order to let your Notification know which phone numer you are targeting, add the `routeNotificationForUnifonic` method to your Notifiable model. | ||
|
||
**Important note**: Unifonic requires the recipients phone number to be without `+` like this format. 21267064497 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could say e164, and just strip the leading plus if it's set
https://developers.omnisend.com/guides/e164-phone-number-formatting
return '21267064497'; | ||
} | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have docs on the avb. methods?
composer.json
Outdated
"require": { | ||
"php": ">=7.2", | ||
"guzzlehttp/guzzle": "^6.2|^7.0", | ||
"illuminate/notifications": "~5.8 || ~6.0 || ^7.0 || ^8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop 5.x
src/UnifonicClient.php
Outdated
$response = $this->client->request('POST', static::GATEWAY_URL, [ | ||
'form_params' => $this->buildMessageParameters($message, $recipient), | ||
'headers' => [ | ||
'Content-Type' => 'application/x-www-form-urlencoded', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think you need to set this (set by default)
Notification Channel for Unifonic
Related to #112