Download the PHP package dridihaythem/laravel-orange-sms-tunisia without Composer
On this page you can find all versions of the php package dridihaythem/laravel-orange-sms-tunisia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-orange-sms-tunisia
Laravel Orange SMS Tunisia Package
This Laravel package facilitates the integration of Orange Tunisia SMS services into your Laravel application. With this package, you can easily send SMS messages to phone numbers using the Orange Tunisia SMS API.
Installation
To get started, install the package via composer by running the following command:
After installation, publish the package configuration files by running the following command:
Next, configure the package in your .env file by providing your Orange Tunisia API token:
Example
-
Send SMS :
You can use the package to send an SMS by calling the sendSms method on the OrangeSMSTunisiaService class. Here's a quick example in a Laravel route closure:
- get available units :
Dashboard
The package provides a sample dashboard to display the history of all SMS and available units. The default route for accessing the dashboard is /orange-sms-tunisia-dashboard.
By default, the dashboard is enabled. However, you have the flexibility to manually enable or disable the dashboard, or even change the route name, by modifying the configuration file located at config/orange_sms_tunisia.php or using .env.
Feel free to customize the configuration according to your specific requirements.
Configuration
By default, the package logs all sent SMS messages and their status in a table named orange_sms_tunisia_logs. If you wish to disable this logging feature or rename the table name, you can update your .env file:
Contributing
If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Your contributions are welcome!