Download the PHP package ibrahem-kamal/omni-messaging without Composer
On this page you can find all versions of the php package ibrahem-kamal/omni-messaging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrahem-kamal/omni-messaging
More information about ibrahem-kamal/omni-messaging
Files in ibrahem-kamal/omni-messaging
Package omni-messaging
Short Description An easy to use, consistent sms library for Laravel
License MIT
Homepage https://github.com/ibrahem-kamal/omni-messaging
Informations about the package omni-messaging
Omni Messaging
An easy to use, consistent sms library for Laravel
Omni messaging is heavily inspired by the PHP OmniPay Library and is designed to be a simple and consistent interface for sending SMS messages in Laravel.
there are many SMS gateways out there, and they all have their own API's, and they all have their own way of doing things. Omni Messaging is designed to provide a consistent interface for sending SMS messages, regardless of the gateway you are using.
Currently supported gateways are (Many more will be added in the future either by me or the community):
Sms Gateway | 1.x | Composer Package | Maintainer |
---|---|---|---|
Jawaly Sms | ✓ | ibrahem-kamal/omni-messaging-jawaly-sms-driver | Ibrahem Kamal |
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
-
Sending Sms
-
Retrieving Balance
- Handling Sms Webhooks
by default this package will handle the incoming sms webhooks using the gateway logic and dispatch an event
OmniMessagingWebhookUpdateEvent
with theparsedWebhookData
as payload. so for example to listen to incoming sms you can do the following:and within your listener you can access the parsed data as follows:
Testing
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
- ibrahemkamal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Roadmap
[❌] Create Log Driver for local development
[❌] Create Twilio Driver
All versions of omni-messaging with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0