Menu

## SmsProcess uses trait:short

SmsProcess.php : 17

##### Tags

class

  trait Trait for Common Processes

### Table of Contents

#### Properties

$RESPONSE_TYPE : mixed

#### Methods

emergencySMS() : string
  Send Emergency SMS Notification
getOTP() : string
  Send OTP via SMS
sendAbsentRecord() : void
  Send absence notification SMS to parents.
sendAdmissionApproval() : void
  Send admission approval SMS including application number.
sendBirthday() : void
  Send birthday wishes SMS.
sendSMS() : string
  Send SMS via MSG91 Gateway
sendSmsNotification() : void
  Send SMS event notification using template placeholders.
sendUserResetPassword() : void
  Send password reset SMS with reset URL.

### Properties

#### $RESPONSE_TYPE

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

### Methods

#### 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

#### sendAbsentRecord()

SmsProcess.php : 90

Send absence notification SMS to parents.

`public sendAbsentRecord(string $to, string $message, string $school_name) : void`

##### Parameters

$to : string

  Recipient mobile number(s)

$message : string

  Absence message text

$school_name : string

  School name to include in the template

#### sendAdmissionApproval()

SmsProcess.php : 150

Send admission approval SMS including application number.

`public sendAdmissionApproval(array<string|int, mixed> $data) : void`

##### Parameters

$data : array<string|int, mixed>

  Data containing application_no, school_name, and mobile_no

#### sendBirthday()

SmsProcess.php : 121

Send birthday wishes SMS.

`public sendBirthday(string $to, string $message, string $school_name) : void`

##### Parameters

$to : string

  Recipient mobile number(s)

$message : string

  Message content

$school_name : string

  School name to include in the template

#### 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

#### sendSmsNotification()

SmsProcess.php : 30

Send SMS event notification using template placeholders.

`public sendSmsNotification(string $to, string $start_date, string $location) : void`

##### Parameters

$to : string

  Recipient mobile number(s)

$start_date : string

  Event start date

$location : string

  Event location text

#### sendUserResetPassword()

SmsProcess.php : 60

Send password reset SMS with reset URL.

`public sendUserResetPassword(string $to, string $url) : void`

##### Parameters

$to : string

  Recipient mobile number(s)

$url : string

  Reset URL to include in the message

## Search results