Skip to content

Commit

Permalink
upto banglalink driver updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Apr 8, 2024
1 parent 5fd6bee commit a61d012
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 24 deletions.
61 changes: 51 additions & 10 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,57 @@ Please follow this steps and you are live with in a mere seconds.
Depending on driver option you choose, add these API credentials
after existing general configuration variables.

| Driver | Credentials | Configured | Tested |
|------------------|-------------------------------------------------------------------------|:------------------:|:------:|
| `africastalking` | `SMS_AFRICA_TALKING_API_KEY=null`<br>`SMS_AFRICA_TALKING_USERNAME=null` | :white_check_mark: | :x: |
| `clickatell` | `SMS_CLICKATELL_API_KEY=null` | :white_check_mark: | :x: |
| `clicksend` | `SMS_CLICKSEND_USERNAME=null`<br>`SMS_CLICKSEND_PASSWORD=null` | :white_check_mark: | :x: |
| `infobip` | `SMS_INFOBIP_API_TOKEN=null` | :white_check_mark: | :x: |
| `messagebird` | `SMS_MESSAGE_BIRD_ACCESS_KEY=null` | :white_check_mark: | :x: |
| `smsbroadcast` | `SMS_SMSBROADCAST_USERNAME=null`<br>`SMS_SMSBROADCAST_PASSWORD=null` | :white_check_mark: | :x: |
| `telnyx` | `SMS_TELNYX_API_TOKEN=null` | :white_check_mark: | :x: |
| `twilio` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | :white_check_mark: | :x: |
| Driver | Credentials | Region | Configured | Tested |
|-------------------|-------------------------------------------------------------------------|:------:|:------------------:|:------:|
| `africastalking` | `SMS_AFRICA_TALKING_API_KEY=null`<br>`SMS_AFRICA_TALKING_USERNAME=null` | GLOBAL | :white_check_mark: | :x: |
| `clickatell` | `SMS_CLICKATELL_API_KEY=null` | GLOBAL | :white_check_mark: | :x: |
| `clicksend` | `SMS_CLICKSEND_USERNAME=null`<br>`SMS_CLICKSEND_PASSWORD=null` | GLOBAL | :white_check_mark: | :x: |
| `infobip` | `SMS_INFOBIP_API_TOKEN=null` | GLOBAL | :white_check_mark: | :x: |
| `messagebird` | `SMS_MESSAGE_BIRD_ACCESS_KEY=null` | GLOBAL | :white_check_mark: | :x: |
| `smsbroadcast` | `SMS_SMSBROADCAST_USERNAME=null`<br>`SMS_SMSBROADCAST_PASSWORD=null` | GLOBAL | :white_check_mark: | :x: |
| `telnyx` | `SMS_TELNYX_API_TOKEN=null` | GLOBAL | :white_check_mark: | :x: |
| `twilio` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | GLOBAL | :white_check_mark: | :x: |
| `adn` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `ajuratech` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `alpha` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `banglalink` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `bdbulksms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `boomcast` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `brilliant` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `bulksmsbd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `customgateway` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `dianahost` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `dianasms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `dnsbd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `elitbuzz` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `esms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `grameenphone` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `greenweb` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `lpeek` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `mdl` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `metronet` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `mimsms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `mobireach` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `mobishasra` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `muthofun` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `novocombd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `onnorokom` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `quicksms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `redmoitsms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smartlabsms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `sms4bd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smsnet24` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smsnoc` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smsinbd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smsnetbd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `smsq` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `ssl` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `tense` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `trubosms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `twentyfoursmsbd` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `viatech` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |
| `twenty4bulksms` | `SMS_TWILIO_USERNAME=null`<br>`SMS_TWILIO_PASSWORD=null` | BAN | :x: | :x: |


## Notification Class

Expand Down
10 changes: 2 additions & 8 deletions config/sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
Providers::CLICK_A_TELL => [
'driver' => \Laraflow\Sms\Drivers\ClickATell::class,
'live' => [
'apiKey' => env('SMS_CLICKATELL_API_KEY'),
'api_key' => env('SMS_CLICKATELL_API_KEY'),
],
'sandbox' => [
'apiKey' => env('SMS_CLICKATELL_API_KEY'),
'api_key' => env('SMS_CLICKATELL_API_KEY'),
],
],
Providers::CLICK_SEND => [
Expand Down Expand Up @@ -142,15 +142,13 @@
Providers::ADN => [
'driver' => \Laraflow\Sms\Drivers\Adn::class,
'live' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'senderid' => env('SMS_ADN_SENDER_ID', ''),
'api_key' => env('SMS_ADN_API_KEY', ''),
'api_secret' => env('SMS_ADN_API_SECRET', ''),
'request_type' => env('SMS_ADN_API_REQUEST_TYPE', ''),
'message_type' => env('SMS_ADN_API_MESSAGE_TYPE', ''),
],
'sandbox' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'senderid' => env('SMS_ADN_SENDER_ID', ''),
'api_key' => env('SMS_ADN_API_KEY', ''),
'api_secret' => env('SMS_ADN_API_SECRET', ''),
Expand All @@ -176,24 +174,20 @@
Providers::ALPHA => [
'driver' => \Laraflow\Sms\Drivers\Alpha::class,
'live' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'api_key' => env('SMS_ALPHA_SMS_API_KEY'),
],
'sandbox' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'api_key' => env('SMS_ALPHA_SMS_API_KEY'),
],
],
Providers::BANGLALINK => [
'driver' => \Laraflow\Sms\Drivers\Banglalink::class,
'live' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'userID' => env('SMS_BANGLALINK_USERID', ''),
'passwd' => env('SMS_BANGLALINK_PASSWD', ''),
'sender' => env('SMS_BANGLALINK_SENDER', ''),
],
'sandbox' => [
'url' => 'https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID$/Messages.json',
'userID' => env('SMS_BANGLALINK_USERID', ''),
'passwd' => env('SMS_BANGLALINK_PASSWD', ''),
'sender' => env('SMS_BANGLALINK_SENDER', ''),
Expand Down
16 changes: 15 additions & 1 deletion src/Drivers/Adn.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
*/
class Adn extends SmsDriver
{
/**
* this function allow programmer to append more config
* that may or may be needed in the configuration file
*
* @return string[]
*/
protected function mergeConfig(): array
{
return [
'url' => 'https://portal.adnsms.com/api/v1/secure/send-sms',
];
}


/**
* Return validation rules for
* that sms driver to operate.
Expand Down Expand Up @@ -50,4 +64,4 @@ public function send(SmsMessage $message): Response
->get($this->config['url'], $this->payload);

}
}
}
15 changes: 14 additions & 1 deletion src/Drivers/AjuraTech.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
*/
class AjuraTech extends SmsDriver
{
/**
* this function allow programmer to append more config
* that may or may be needed in the configuration file
*
* @return string[]
*/
protected function mergeConfig(): array
{
return [
'url' => 'https://smpp.ajuratech.com:7790/sendtext?json',
];
}

/**
* Return validation rules for
* that sms driver to operate.
Expand Down Expand Up @@ -50,4 +63,4 @@ public function send(SmsMessage $message): Response
->get($this->config['url'], $this->payload);

}
}
}
15 changes: 14 additions & 1 deletion src/Drivers/Alpha.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
*/
class Alpha extends SmsDriver
{
/**
* this function allow programmer to append more config
* that may or may be needed in the configuration file
*
* @return string[]
*/
protected function mergeConfig(): array
{
return [
'url' => 'https://api.sms.net.bd/sendsms',
];
}

/**
* Return validation rules for
* that sms driver to operate.
Expand Down Expand Up @@ -50,4 +63,4 @@ public function send(SmsMessage $message): Response
->get($this->config['url'], $this->payload);

}
}
}
15 changes: 14 additions & 1 deletion src/Drivers/Banglalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
*/
class Banglalink extends SmsDriver
{
/**
* this function allow programmer to append more config
* that may or may be needed in the configuration file
*
* @return string[]
*/
protected function mergeConfig(): array
{
return [
'url' => 'https://vas.banglalink.net/sendSMS/sendSMS',
];
}

/**
* Return validation rules for
* that sms driver to operate.
Expand Down Expand Up @@ -50,4 +63,4 @@ public function send(SmsMessage $message): Response
->get($this->config['url'], $this->payload);

}
}
}
2 changes: 1 addition & 1 deletion src/Drivers/ClickATell.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function rules(): array
public function send(SmsMessage $message): Response
{
$this->payload = [
'apiKey' => $this->config['apiKey'],
'apiKey' => $this->config['api_key'],
'to' => $message->getReceiver(),
'from' => $message->getSender(),
'content' => $message->getContent(),
Expand Down
2 changes: 1 addition & 1 deletion src/Providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Providers
public const MOBI_REACH = 'mobireach';
public const MOBI_SHASRA = 'mobishasra';
public const MUTHOFUN = 'muthofun';
public const NOVOCOMBD = 'movocombd';
public const NOVOCOMBD = 'novocombd';
public const ONNOROKOM = 'onnorokom';
public const QUICK_SMS = 'quicksms';
public const REDMO_IT_SMS = 'redmoitsms';
Expand Down

0 comments on commit a61d012

Please sign in to comment.