Download the PHP package craftsys/msg91-laravel-notification-channel without Composer

On this page you can find all versions of the php package craftsys/msg91-laravel-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package msg91-laravel-notification-channel

Laravel Notification Channels For Msg91 SMS Notifications

Total Downloads Latest Stable Version License Status

Laravel notification channel for Msg91 API (wrapper around Laravel Msg91 Client)

Table of Contents

Installation

prerequisite

The package is tested for 5.8+,^6.0,^7.0,^8.0,^9.0,^10.0 only. If you find any bugs for laravel (5.0< >5.8), please file an issue.

If you just want to integrate Msg91 api in Laravel without notification channel, please use Msg91 Laravel instead.

Configuration

Next, you will need to add a few configuration options to your config/services.php configuration file. You may copy the example configuration below to get started:

All available configuration can be found at msg91-php client's configuration page

Usage

If a notification supports being sent as an SMS, you should define a toMsg91 method on the notification class. This method will receive a $notifiable entity and should return a Craftsys\Notifications\Messages\Msg91SMS or Craftsys\Notifications\Messages\Msg91OTP instance based on your need to sending message or sending an OTP.

NOTE: Phone number must be in international format i.e. it must include the country code.

SMS

OTP

Verify OTP

This package include the Laravel Msg91 Client, so you can use all the api provided by that package like verify an OTP, sending otp without using notification channel etc.

You can access the client using Msg91 facade as follows:

Routing SMS Notification

When sending notifications via the msg91 channel, the notification system will automatically look for a phone_number attribute on the notifiable entity. If you would like to customize the phone number the notification is delivered to, define a routeNotificationForMsg91 method on the entity as suggested on laravel docs.

You can also set the recipient(s) when composing your message in the toMsg91 method of your notification as follows:

Advanced Usage

These messages Msg91SMS and Msg91OTP extend \Craftsys\Msg91\SMS\Options and \Craftsys\Msg91\OTP\Options, so all configuration methods are available when crafting your notification message. These are all optional and you can use them in any order. e.g.

Related

Acknowledgements


All versions of msg91-laravel-notification-channel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3|^8.0|^8.1|^8.2
craftsys/msg91-laravel Version ^0.15.1
illuminate/notifications Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package craftsys/msg91-laravel-notification-channel contains the following files

Loading the files please wait ....