Download the PHP package hadhiya/msgowl without Composer
On this page you can find all versions of the php package hadhiya/msgowl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hadhiya/msgowl
More information about hadhiya/msgowl
Files in hadhiya/msgowl
Package msgowl
Short Description The official MsgOwl SMS and OTP wrapper for the Hadhiya ecosystem.
License MIT
Homepage https://github.com/hadhiya/msgowl
Informations about the package msgowl
Hadhiya MsgOwl SMS & OTP for Laravel
A modern, fluent Laravel wrapper for the MsgOwl API. This package simplifies sending SMS and managing OTP (One-Time Password) verification for your applications, following standard PSR-4 conventions.
Features
- Fluent Message Builder: Chainable methods for clean, readable code.
- Dual Domain Support: Seamlessly switches between standard SMS (
rest.msgowl.com) and OTP (otp.msgowl.com) endpoints. - Laravel Notifications: Integrated support for sending SMS via Laravel's built-in notification system.
- Dry Run Mode: Safely test your logic by logging messages locally instead of sending real (paid) SMS.
- OTP Lifecycle: Dedicated methods for Sending, Resending, and Verifying OTP codes using secure Key/Secret authentication.
Installation
You can install the package via composer:
Publish the configuration file to your config directory:
Configuration
Add your MsgOwl credentials to your .env file. These can be obtained from your MsgOwl Dashboard.
Usage
1. Sending Standard SMS
You can send messages using the Facade with the fluent builder or a simple array.
2. OTP Verification
Ideal for identity verification during NIC or Passport registration flows.
3. Laravel Notifications
Return a MsgOwlMessage from your toMsgOwl method to send SMS notifications to users.
4. Development & Testing (Dry Run)
Use dryRun() to write the message data to your laravel.log file instead of making a live API request.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of msgowl with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0