Download the PHP package granada-pride/unifonic-sms without Composer
On this page you can find all versions of the php package granada-pride/unifonic-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download granada-pride/unifonic-sms
More information about granada-pride/unifonic-sms
Files in granada-pride/unifonic-sms
Package unifonic-sms
Short Description A Laravel package for integrating Unifonic SMS with the Laravel notification system.
License MIT
Informations about the package unifonic-sms
[]()
Unifonic SMS for Laravel
Unifonic SMS is a Laravel package that provides seamless integration with the Unifonic SMS service. It allows you to send SMS messages through the Unifonic platform using Laravel's native notification system. Whether you need to send OTPs, alerts, or marketing messages, this package simplifies the process by integrating directly into Laravel.
Features
- Seamless Integration: Easily send SMS notifications through Unifonic.
- Configurable: Adjust settings via the Laravel config system.
- Error Handling: Full support for exception handling and logging.
- Laravel Compatibility: Compatible with Laravel 8.x, 9.x, and 10.x.
- Secure: Handles sensitive data securely.
Table of Contents
- Installation
- Configuration
- Usage
- Advanced Usage
- Contributing
- License
Installation
To get started, install the package via Composer:
Requirements
- PHP >= 8.0
- Laravel >= 8.x
Configuration
After installing the package, publish the configuration file:
This will publish a unifonic.php configuration file to your config directory where you can set your AppSid, SenderID, and Endpoint.
Configuration Options
- AppSid: Your Unifonic application SID.
- SenderID: The name or number that will appear as the sender of the SMS.
- Endpoint: The Unifonic API endpoint (default: https://el.cloud.unifonic.com/rest/SMS/messages).
Example configuration (config/unifonic.php):
To enable logging for the Unifonic SMS package, you can add a custom log channel in your config/logging.php file:
This configuration ensures that Unifonic SMS logs are stored in a separate log file at storage/logs/unifonic.log and only logs messages with a severity level of error or higher.
Usage
After configuring the package, you can send SMS notifications:
Advanced Usage
To customize the SMS further or handle different scenarios, you can modify the notification class:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an issue to improve this package.
License
This package is open-source software licensed under the MIT License. Please see the License File for more information.