Skip to content

Conversation

@ChiragAgg5k
Copy link
Member

@ChiragAgg5k ChiragAgg5k commented Apr 5, 2025

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.


public function getName(): string
{
return static::NAME;
Copy link
Contributor

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-05-12 at 9 23 43 PM

thats what we do for Fast2SMS and others

Copy link
Member

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));
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, removed

@christyjacob4 christyjacob4 merged commit c51915d into main May 12, 2025
2 of 3 checks passed
@christyjacob4 christyjacob4 deleted the feat-inforu-adapter branch May 12, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants