delboy1978uk / sms-twilio
Twilio adapter for delboy1978uk/sms
v1.0.2
2021-07-03 09:20 UTC
Requires
- delboy1978uk/sms: ^1.0.0
- twilio/sdk: ^6.25
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-09 23:36:39 UTC
README
A Twilio SMS provider adapter for delboy1978uk/sms
installation
Install via composer
composer require delboy1978uk/sms-twilio
usage
Instantiate the adapter and pass it into the SmsService
constructor.
use Bone\Sms\Adapter\Twilio; $accountSid = 'XXXXX'; $authToken = 'XXXXX'; $fromNumber = '+3211122233'; $adapter = new Twilio($accountSid, $authToken, $fromNumber); $service = new SmsService($adapter);