Skip to content

Commit

Permalink
Merge pull request #81 from arif98741/temp_elitebuzz_urlenconde
Browse files Browse the repository at this point in the history
fix: Added type param for config and modified readme file
  • Loading branch information
arif98741 authored Oct 28, 2024
2 parents e155bbf + 55c2b95 commit 7f2163e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ echo $status = $sender->send();
| DianaHost | api_key, type, senderid | - | Done | - | - |
| DianaSMS | ApiKey, ClientId, SenderId | - | Done | - | - |
| DurjoySoft | ApiKey, SenderID | - | Done | - | - |
| ElitBuzz | api_key, type, senderid | - | Done | not tested yet in live | - |
| ElitBuzz | api_key, type, senderid, type | - | Done | not tested yet in live | - |
| Esms | api_token, sender_id | - | Done | - | - |
| Grameenphone | username, password, messagetype | - | Done | not tested yet in live | - |
| Infobip | user, password | - | Done | not tested yet in live | - |
Expand Down
1 change: 1 addition & 0 deletions src/Config/sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
ElitBuzz::class => [
'url' => env('SMS_ELITBUZZ_URL', ''),
'senderid' => env('SMS_ELITBUZZ_SENDER_ID', ''),
'type' => env('SMS_ELITBUZZ_TYPE', ''),
'api_key' => env('SMS_ELITBUZZ_API_KEY', ''),
],
Esms::class => [
Expand Down
4 changes: 4 additions & 0 deletions src/Provider/ElitBuzz.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ public function errorException()
if (!array_key_exists('senderid', $config)) {
throw new RenderException('senderid key is absent in configuration');
}

if (!array_key_exists('type', $config)) {
throw new RenderException('type key is absent in configuration');
}
}
}

0 comments on commit 7f2163e

Please sign in to comment.