Skip to content

Commit a90bb92

Browse files
author
Aboozar Ghaffari
authored
Merge pull request #16 from miladkian/master
Add verify sms for otp on Ghasedak
2 parents 2aed8ff + dc928f8 commit a90bb92

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717
},
1818
"require": {
19-
"php": ">=5.4",
19+
"php": ">=5.6",
2020
"ext-soap": "*",
2121
"ext-curl": "*",
2222
"ext-json": "*",
2323
"illuminate/support": ">=5.0.0",
24-
"ghasedak/php":"dev-master",
25-
"kavenegar/php": "*"
24+
"ghasedak/php":"^1.0",
25+
"kavenegar/php": "^1.2"
2626
}
2727
}

src/Adapter/Ghasedak.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,18 @@ public function send(string $number, string $message)
3434
$this->credential['sender']
3535
);
3636
}
37+
38+
public function Verify(string $number, int $type, string $template, ...$args)
39+
{
40+
$number = $this->filterNumber($number);
41+
42+
$api = new GhasedakApi($this->credential['api_key']);
43+
44+
return $api->Verify(
45+
$number,
46+
$type,
47+
$template,
48+
...$args
49+
);
50+
}
3751
}

0 commit comments

Comments
 (0)