GoSMSGateway API - Laravel Library Worked on SMS API MODULE Version V.1.6
- Send SMS (Short Message Service)
Set GoSMSGateway auth credentials in .env
file
...
GOSMS_AUTH_USER=xxx
GOSMS_AUTH_PASS=xxx
...
Copy GoSms.php
to your Laravel project - for sample copy then paste in app/Libraries
In your Controller file, please include the GoSms library
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
// USE LIBRARIES
use App\Libraries\GoSms;
class XxxController extends Controller
{
....
How to call the function send SMS using GoSms library
...
// SET THE PARAMETERS
$mobile = $request->input('mobile_phone');
$message = $request->input('message');
$trxid = uniqid();
$type = 0;
$debug = false;
$result = GoSms::send($mobile, $message, $trxid, $type, $debug);
return $result; // Boolean
...
If you want to debug the function, set $debug = true;
then the response of the function will be a string containing the response code and the response message from GoSMSGateway API (sample: "1702 - Invalid Username or Password")
For sample, please check DevController.php
Thank you for considering contributing to the GoSms.
If you discover a bug or security vulnerability within GoSms, please send an email to Vicky Budiman at vicky@kiniditech.com. All requests will be addressed promptly.
If you come across any issue/bug please report them here.
GoSms is open-sourced software built by KINIDI Tech and contributors and licensed under the MIT license.
- Vicky Budiman (https://github.com/vickzkater)
- GoSMSGateway (https://gosmsgateway.com/)
Brought to you by
KINIDI Tech