This is a Laravel package for sending SMS using the Twilio service using Twilio multi-accounts and patterns for automatically selecting an "sms_from" number.
Require the package via composer into your project
composer require armenium/laratwiliomulti
To publish the view files, run:
php artisan vendor:publish --tag=laratwiliomulti-views
To publish the asset (js, css) files, run:
php artisan vendor:publish --tag=laratwiliomulti-assets
Go to the Settings page and create an account(s)
On your site, the link to the settings page will look like this:
https://YOUR-DOMAIN.com/laratwiliomultisettings
(Replace YOUR-DOMAIN.com with your real domain)
To send a SMS message, you can use the notify()
method available on the LaraTwilioMulti
Facade
<?php
use Armenium\LaraTwilioMulti\Facades\LaraTwilioMulti;
$sendSms = LaraTwilioMulti::notify('+1234567890', 'Hello')
return $sendSms;
Want to contribute to this package? Read our contributor guidelines to get set up.
This package is released under the MIT License.