Skip to content

Commit

Permalink
BulkSmsBD api url changed and change parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariful Islam committed Dec 4, 2022
1 parent 540c41f commit 4eac952
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
44 changes: 22 additions & 22 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,30 +169,30 @@ $status = $sender->send();

# Currently Supported SMS Gateways

| Provider | Credentials Required <br> For Sending SMS | Status | Comment |
|--------------|------------------------------------------------------|--------|------------------------|
| AjuraTech | apikey, secretkey , callerID | Done | - |
| Adn | api_key, type, senderid | Done | - |
| Banglalink | userID, passwd , sender | Done | - |
| BDBulkSMS | token | Done | - |
| BoomCast | masking , userName , password | Done | - |
| BulksmsBD | username, password | Done | - |
| DianaHost | api_key, type, senderid | Done | - |
| DianaSMS | ApiKey, ClientId, SenderId | Done | - |
| Esms | api_token, sender_id | Done | - |
| ElitBuzz | api_key, type, senderid | Done | not tested yet in live |
| Infobip | user, password | Done | not tested yet in live |
| MDL | api_key, type, senderid | Done | not tested yet in live |
| Metronet | api_key, mask | Done | - |
| MimSms | api_key, type, senderid | Done | - |
| Mobireach | Username,Password, From | Done | - |
| NovocomBD | ApiKey , ClientId , SenderId | Done | - |
| Provider | Credentials Required <br> For Sending SMS | Status | Comment |
|-------------|------------------------------------------------------|--------|------------------------|
| AjuraTech | apikey, secretkey , callerID | Done | - |
| Adn | api_key, type, senderid | Done | - |
| Banglalink | userID, passwd , sender | Done | - |
| BDBulkSMS | token | Done | - |
| BoomCast | masking , userName , password | Done | - |
| BulkmsBD | api_key, senderid | Done | - |
| DianaHost | api_key, type, senderid | Done | - |
| DianaSMS | ApiKey, ClientId, SenderId | Done | - |
| Esms | api_token, sender_id | Done | - |
| ElitBuzz | api_key, type, senderid | Done | not tested yet in live |
| Infobip | user, password | Done | not tested yet in live |
| MDL | api_key, type, senderid | Done | not tested yet in live |
| Metronet | api_key, mask | Done | - |
| MimSms | api_key, type, senderid | Done | - |
| Mobireach | Username,Password, From | Done | - |
| NovocomBD | ApiKey , ClientId , SenderId | Done | - |
| OnnoRokomSMS | userName, userPassword, type, maskName, campaignName | Done | not tested yet in live |
| SmartLabSMS | user, password, sender | Done | - |
| Sslsms | api_token, sid, csms_id | Done | - |
| SmartLabSMS | user, password, sender | Done | - |
| Sslsms | api_token, sid, csms_id | Done | - |
| Tense | user, password, campaign, masking | Done | - |
| TwentyFourSmsBD | apiKey, sender_id | Done | - |
| Viatech | api_key, mask | Done | - |
| TwentyFourSmsBD | apiKey, sender_id | Done | - |
| Viatech | api_key, mask | Done | - |


We are continuously working in this open source library for adding more Bangladeshi sms gateway. If you feel something
Expand Down
20 changes: 12 additions & 8 deletions src/Provider/BulkSmsBD.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@ public function sendRequest()
$queue = $this->senderObject->getQueue();

$query = [
'username' => $config['username'],
'password' => $config['password'],
'api_key' => $config['api_key'],
'type' => 'text',
'number' => $number,
'message' => $text,
];

$requestObject = new Request('http://66.45.237.70/api.php', $query, $queue);
if (array_key_exists('senderid', $config)) {
$query = [
'senderid' => $config['senderid'],
];
}

$requestObject = new Request('https://bulksmsbd.net/api/smsapi', $query, $queue);
$response = $requestObject->get();
if ($queue) {
return true;
Expand All @@ -64,11 +70,9 @@ public function sendRequest()
*/
public function errorException()
{
if (!array_key_exists('username', $this->senderObject->getConfig())) {
throw new ParameterException('username key is absent in configuration');
}
if (!array_key_exists('password', $this->senderObject->getConfig())) {
throw new ParameterException('password key is absent in configuration');
if (!array_key_exists('api_key', $this->senderObject->getConfig())) {
throw new ParameterException('api_key key is absent in configuration');
}

}
}

0 comments on commit 4eac952

Please sign in to comment.