-
Notifications
You must be signed in to change notification settings - Fork 66
feat: inforu sms adapter #96
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
Conversation
|
|
||
| public function getName(): string | ||
| { | ||
| return static::NAME; |
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.
why static? Why not self::name ?
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.
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.
self::NAME will return the base class value even in child classes, better to use static in most cases
| $message->getTo() | ||
| ); | ||
|
|
||
| fwrite(STDOUT, json_encode($recipients, JSON_PRETTY_PRINT)); |
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.
why are we using fwrite here?
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.
oops, removed

What does this PR do?
Adds Inforu SMS adapter to reduce OTP costs in Israel region. Docs - https://apidoc.inforu.co.il/#a14d8383-8b48-4acc-9e78-48d245f2a5f0
Test Plan
Added test file.
Related PRs and Issues
Have you read the Contributing Guidelines on issues?
Yes.