Skip to content

Commit

Permalink
Merge pull request #37 from arif98741/dev
Browse files Browse the repository at this point in the history
Merge Request for PHP 7.2 Support Removal and Others
  • Loading branch information
arif98741 authored Jun 2, 2023
2 parents 4b74cac + f9dd3e0 commit f560499
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"guzzlehttp/guzzle": "^6.3|^7.3",
"ext-json": "*",
"ext-curl": "*",
"php": ">=7.2"
"php": ">=7.3"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion src/Provider/AjuraTech.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

class AjuraTech extends AbstractProvider
{
private string $apiEndpoint = 'https://smpp.ajuratech.com:7790/sendtext?json';
/**
* Ajuratech constructor.
* @param Sender $sender
Expand Down Expand Up @@ -52,7 +53,7 @@ public function sendRequest()
'messageContent' => $text,
];

$requestObject = new Request('https://smpp.ajuratech.com:7790/sendtext?json', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);
$response = $requestObject->get();
if ($queue) {
return true;
Expand Down
3 changes: 2 additions & 1 deletion src/Provider/BDBulkSms.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

class BDBulkSms extends AbstractProvider
{
private string $apiEndpoint = 'http://api.greenweb.com.bd/api2.php';
/**
* BDBulkSms constructor.
* @param Sender $sender
Expand All @@ -42,7 +43,7 @@ public function sendRequest()
'to' => $number,
'message' => $text,
];
$requestObject = new Request('http://api.greenweb.com.bd/api2.php', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);

$response = $requestObject->get();
if ($queue) {
Expand Down
4 changes: 3 additions & 1 deletion src/Provider/Banglalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

class Banglalink extends AbstractProvider
{
private string $apiEndpoint = 'https://vas.banglalink.net/sendSMS/sendSMS';

/**
* Banglalink constructor.
* @param Sender $sender
Expand Down Expand Up @@ -46,7 +48,7 @@ public function sendRequest()
'message' => $text,
];

$requestObject = new Request('https://vas.banglalink.net/sendSMS/sendSMS', [], $queue);
$requestObject = new Request($this->apiEndpoint, [], $queue);
$requestObject->setFormParams($formParams);
$response = $requestObject->post();
if ($queue) {
Expand Down
3 changes: 2 additions & 1 deletion src/Provider/BoomCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class BoomCast extends AbstractProvider
{
private string $apiEndpoint = 'https://api.boom-cast.com/boomcast/WebFramework/boomCastWebService/OTPMessage.php';
/**
* BoomCast Constructor
* @param Sender $sender
Expand Down Expand Up @@ -43,7 +44,7 @@ public function sendRequest()
"message" => $text,
];

$requestObject = new Request('https://api.boom-cast.com/boomcast/WebFramework/boomCastWebService/OTPMessage.php', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);

$response = $requestObject->get();
if ($queue) {
Expand Down
4 changes: 3 additions & 1 deletion src/Provider/Brilliant.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

class Brilliant extends AbstractProvider
{
private string $apiEndpoint ='http://sms.brilliant.com.bd:6005/api/v2/SendSMS';

/**
* Brilliant constructor.
* @param Sender $sender
Expand Down Expand Up @@ -45,7 +47,7 @@ public function sendRequest()
'Is_Unicode' => true,
];

$requestObject = new Request('http://sms.brilliant.com.bd:6005/api/v2/SendSMS', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);
$response = $requestObject->get();
if ($queue) {
return true;
Expand Down
3 changes: 2 additions & 1 deletion src/Provider/BulkSmsBD.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

class BulkSmsBD extends AbstractProvider
{
private string $apiEndpoint = 'https://bulksmsbd.net/api/smsapi';
/**
* BulkSmsBD constructor.
* @param Sender $sender
Expand Down Expand Up @@ -52,7 +53,7 @@ public function sendRequest()



$requestObject = new Request('https://bulksmsbd.net/api/smsapi', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);
$response = $requestObject->get();
if ($queue) {
return true;
Expand Down
4 changes: 3 additions & 1 deletion src/Provider/DianaHost.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

class DianaHost extends AbstractProvider
{
private string $apiEndpoint ='http://esms.dianahost.com/smsapi';

/**
* DianaHost constructor.
* @param Sender $sender
Expand Down Expand Up @@ -45,7 +47,7 @@ public function sendRequest()
];


$requestObject = new Request('http://esms.dianahost.com/smsapi', $query, $queue);
$requestObject = new Request($this->apiEndpoint, $query, $queue);
$response = $requestObject->get();
if ($queue) {
return true;
Expand Down

0 comments on commit f560499

Please sign in to comment.