Download the PHP package escolalms/templates-sms without Composer
On this page you can find all versions of the php package escolalms/templates-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download escolalms/templates-sms
More information about escolalms/templates-sms
Files in escolalms/templates-sms
Package templates-sms
Short Description Escola Headless LMS Templates for sms
License MIT
Informations about the package templates-sms
Templates-SMS
What does it do
Package for sms notifications with editable templates (for important user-related events). This package supports sending sms via twilio.
Installing
composer require escolalms/templates-sms
php artisan db:seed --class="EscolaLms\Templates-SMS\Database\Seeders\TemplateSmsSeeder"
Configuration
You can configure the connection to Twilio through keys in the .env
file:
TWILIO_SID
- twilio SID unique keyTWILIO_TOKEN
- twilio auth tokenTWILIO_FROM
- twilio phone numberTWILIO_SSL_VERIFY
- twilio ssl verify
You can also change the default driver in SMS_DRIVER
Example
Sending SMS
Sending an SMS using the Sms
facade
`
or
Custom driver
You can define your own driver for sending sms. The driver must implement the interface \EscolaLms\TemplatesSms\Drivers\Contracts\SmsDriver
.
Example custom driver:
Register a new driver, we would do the following:
Tests
Run ./vendor/bin/phpunit
to run tests. See tests folder as it's quite good staring point as documentation appendix.
This package has a facade for testing. The Sms facade's fake method allows you to easily a fake sms driver.
All versions of templates-sms with dependencies
escolalms/core Version ^1.2.2
escolalms/settings Version >=0.1.2
escolalms/templates Version ^0
laravel/framework Version >=8.0
twilio/sdk Version ^6.42
tzsk/sms Version 6.0.0