settermjd / laminas-twilio-integration
A small package to simplify integrating Twilio into a Laminas or Mezzio project
Fund package maintenance!
Community Bridge
Requires
- php: ^8.2.0
- composer/composer: ^2.5
- psr/container: ^1.0.0 || ^2.0.0
- symfony/filesystem: ^6.2
- twilio/sdk: ^7.2
Requires (Dev)
- fakerphp/faker: ^1.21
- laminas/laminas-coding-standard: ^2.5
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10.1
- psalm/plugin-phpunit: ^0.18.4
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.9
README
This is a small package that simplifies integrating Twilio into Laminas and Mezzio projects.
Installation
Install this package using Composer:
composer require settermjd/laminas-twilio-integration
Configuration
If you're using the package with Mezzio, copy the default configuration file, config/autoload/twilio.global.php, to config/autoload in your project.
Then, either ensure that the TWILIO_ACCOUNT_SID
and TWILIO_AUTH_TOKEN
environment variables are set, or change the value of account_sid
and auth_token
in config/autoload/twilio.global.php as appropriate.
I recommend using PHP Dotenv to set environment variables during development and your deployment tool otherwise.