Menu

## CheckSmsTest extends Command
in package
uses MSG91

CheckSmsTest.php : 9

### Table of Contents

#### Properties

$description : string
  The console command description.
$signature : string
  The name and signature of the console command.
$RESPONSE_TYPE : mixed

#### Methods

__construct() : void
  Create a new command instance.
emergencySMS() : string
  Send Emergency SMS Notification
getOTP() : string
  Send OTP via SMS
handle() : mixed
  Execute the console command.
sendSMS() : string
  Send SMS via MSG91 Gateway

### Properties

#### $description

CheckSmsTest.php : 25

The console command description.

`protected string $description = 'Check sms Test '`

#### $signature

CheckSmsTest.php : 18

The name and signature of the console command.

`protected string $signature = 'gego:checksmstest'`

#### $RESPONSE_TYPE

MSG91.php : 26
`private mixed $RESPONSE_TYPE = 'json'`

### Methods

#### __construct()

CheckSmsTest.php : 34

Create a new command instance.

`public __construct() : void`

#### emergencySMS()

MSG91.php : 180

Send Emergency SMS Notification

`public emergencySMS(string $message_content, string $mobileNumber) : string`

Sends an emergency notification SMS to one or more mobile numbers. Message format: "GegoK12. Message : [message_content]" Uses reminder API credentials from environment variables.

##### Parameters

$message_content : string

  The emergency notification message

$mobileNumber : string

  Mobile number(s) to send to (comma-separated for multiple)

##### Tags

throws
  Exception

  Logs exceptions without throwing

##### Return values

string —

API response from MSG91 gateway

#### getOTP()

MSG91.php : 116

Send OTP via SMS

`public getOTP(string $OTP, string $mobileNumber) : string`

Generates and sends a One-Time Password (OTP) to the specified mobile number. Message format: "Welcome to GegoK12. Your OTP is : [OTP]" Uses reminder API credentials from environment variables.

##### Parameters

$OTP : string

  The OTP code to send

$mobileNumber : string

  Mobile number to send OTP to

##### Tags

throws
  Exception

  Logs exceptions without throwing

##### Return values

string —

API response from MSG91 gateway

#### handle()

CheckSmsTest.php : 44

Execute the console command.

`public handle() : mixed`

#### sendSMS()

MSG91.php : 41

Send SMS via MSG91 Gateway

`public sendSMS(string $content, string $to) : string`

Sends an SMS message to one or more mobile numbers using MSG91 API. Updates Reminder records with API response after sending. Uses environment variables for API credentials.

##### Parameters

$content : string

  The message content to send

$to : string

  Mobile number(s) to send to (comma-separated for multiple)

##### Tags

throws
  Exception

  Logs exceptions without throwing

##### Return values

string —

API response from MSG91 gateway

## Search results