cloudwal / laravel-infobip-sms
Sends SMS messages through the InfoBip V3 Api
Fund package maintenance!
CloudWales
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
README
This is a very simple package to send sms messages through the InfoBip API.
Installation
You can install the package via composer:
composer require cloudwal/laravel-infobip-sms
You can publish the config file with:
php artisan vendor:publish --tag="laravel-infobip-sms-config"
This is the contents of the published config file:
return [ 'debug' => env('INFOBIP_DEBUG', true), 'sender' => env('INFOBIP_SENDER', 'Laravel'), 'from' => env('INFOBIP_FROM_NUMBER', '0123456789'), 'username' => env('INFOBIP_USERNAME', 'user'), 'password' => env('INFOBIP_PASSWORD', '123456'), 'host' => env('INFOBIP_HOST', 'https://test.api.infobip.com'), ];
Usage
use CloudWales\LaravelInfobitSms\LaravelInfobipSms; $response = new LaravelInfobipSms(); // Send an SMS return $response->sendSms(['0123456789', '12345678901'], 'Test SMS message'); // Send WhatsApp Message return $response->sendWhatsApp('0123456789', 'Test WhatsApp message'); // Get the delivery report of the message return $response->getMessageReport($response['bulkId']);
Testing
composer test
Upcoming
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.