Skip to content

Commit

Permalink
2023-04-04 10:34 - v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisOuellet committed Apr 4, 2023
1 parent 1def4d1 commit 9a2569e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3
21 changes: 21 additions & 0 deletions src/phpSMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,28 @@ public function config($option, $value){

return $this;
}
private $Provider = null;
private $SID = null;
private $Token = null;
private $Phone = null;

/**
* Check if phpSMS is ready to send SMS.
*
* @return boolean
*/
public function isReady(){
return ($this->Provider !== null && $this->SID !== null && $this->Token !== null && $this->Phone !== null);
}

/**
* Send SMS.
*
* @param string $Number
* @param string $Body
* @return array
* @throws Exception
*/
public function send($Number, $Body){
try{

Expand Down

0 comments on commit 9a2569e

Please sign in to comment.