Cyber Monday: The Biggest Offer! Get Our Best Ecommerce Script, Only $41 - Get it here!
Shofy - eCommerce & Multivendor Marketplace Laravel Platform - Biggest Offer! Only $59 - Get it here!
Envato Market Sale
SMS Gateway

SMS Gateway

SMS gateway for Botble scripts

Version

1.0.1

Botble Version

>= 7.3.0

Downloads

205

License

MIT

FOB SMS Gateway

SMS Gateway plugin for Botble is a plugin designed to integrate SMS functionality into your Botble-based applications. This plugin allows you to send SMS messages to your users, and verify their phone numbers.

Usage Instructions

  1. Go to Admin → Installed Plugins → activate the SMS Gateway plugin.

  2. Then go to SMS Gateways to configure the initial settings for the plugin.

Settings

  1. First, activate the SMS gateway you want to use, enter the secret information of that SMS gateway, and click Save.

Settings

  1. Then, at the top, select the Default SMS provider to send SMS.

  2. To configure sending OTP for user phone verification, you need to select guard. If it is an ecommerce application, the guard will be customer. Click Save Settings.

  3. Then check the Enable phone verification checkbox to allow users to verify their phone numbers via OTP sent to their phone.

Settings

Supported SMS Gateways

The FOB SMS Gateway plugin supports the following SMS gateways:

  1. Twilio
  2. Nexmo

You can add more SMS gateways by extending the plugin.

Extending the Plugin

To add a new SMS gateway to the FOB SMS Gateway plugin, follow these steps:

Create a New Driver Class:

Create a new class that extends FriendsOfBotble\Sms\Drivers\AbstractDriver and implement the required methods.

<?php

namespace FriendsOfBotble\Sms\Drivers;

use FriendsOfBotble\Sms\Drivers\AbstractDriver;

class NewDriver extends AbstractDriver
{
    protected function performSend(string $to, string $message): SmsResponse
    {
        // TODO: Implement performSend() method.
    }

    public function getLogo(): string
    {
        // TODO: Implement getLogo() method.
    }

    public function getInstructions(): string
    {
        // TODO: Implement getInstructions() method.
    }

    public function getSettingForm(): FormAbstract
    {
        // TODO: Implement getSettingForm() method.
    }
}

Register the New Driver:

Register the new driver by extending the FriendsOfBotble\Sms\Facades\Sms:

use FriendsOfBotble\Sms\Facades\Sms;

Sms::extend('new_driver', function () {
    return new NewDriver();
});

Support me ❤️

  • Bank Information: TECHCOMBANK | 8080777777
  • PayPal ID: [email protected]
  • Bank QR Code: TECHCOMBANK | 8080777777
Kindly log in to share your feedback on this plugin.
Sparrow Wave

Sparrow Wave

Please update plugin and add a driver so that anyone can add custom HTTP GET URL based SMS Gateway In india.. with dynamic input fields