Download the PHP package bitcodesa/msegat without Composer
On this page you can find all versions of the php package bitcodesa/msegat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitcodesa/msegat
More information about bitcodesa/msegat
Files in bitcodesa/msegat
Package msegat
Short Description Notification Channel For Msegate msegat.com
License MIT
Homepage https://github.com/bitcodesa/msegat
Informations about the package msegat
Notification Channel For Msegate msegat.com
Laravel Msegat Notification Channel
This package provides a Laravel notification channel for sending SMS messages using the msegat.com SMS provider.
Installation
-
Install the package:
-
Publish the config file:
- Configure the package:
Edit the published config file (config/msegat.php) with your Msegat credentials:
- Configure Msegat service:
- Get your credentials:
- Create an account at msegat.com.
- Go to your dashboard.
- Obtain your API Key, Username, and Sender ID.
- Set environment variables:
- Open your
.envfile. - Add the following lines, replacing the placeholder values with your credentials:
- Open your
- Use Messages Log:
if you went to use messages log that create recorde for
Messagemodel, you have to publish the table:
make sure that you allow the creation through:
you can use Messageable trait to get any register that linked to any notifiable model:
then you can get messages through:
Usage
- Add the Msegat channel to your notification class:
Available Method for MsegatMessage object:
timeToExec("YYYY-MM-DD HH:i:SS")allow you to specify the time that the message should be sent.unicode("UTF8")specify unicode for the message by default it is "UTF8".type("TYPE_SMS")specify message type you can choose between SMS or OTP.sender($sender)specify sender name.lang("ar")specify OTP language by defualt it is "ar"
-
Send the sms notification:
- Send otp notification:
NOTE:This feature not working from the source msegat.com
SendOtp Class:
NOTE:This feature not working from the source msegat.com
Validate OTP:
NOTE:This feature not working from the source msegat.com
Notifiable Identifier
By default, the Msegat notification channel uses the phone property on the notifiable model to identify the recipient.
If your model uses a different attribute for phone numbers, you can override the default behavior by implementing
the routeNotificationForMsegat() method on your notifiable model:
This instructs the package to use the mobile attribute instead of phone to find the recipient's phone number.
Additional Notes
- The package supports unicode messages.
- The package allows you to customize the sender name displayed on the recipient's phone.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Abather
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of msegat with dependencies
guzzlehttp/guzzle Version ^7.2
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^12.0|^11.0|^10.0|^9.0