Skip to content
📱 2 lines to send a text message using Twilio (for Laravel and Lumen)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Twilio Controller for Laravel and Lumen

Featured on Twilio's developer blog.


2 lines to send a text using Twilio (for Laravel and Lumen)


  • Add TextController.php into your Controllers folder
  • Edit your .env file to insure that the 3 new variables form this .env file are added (with your Twilio API info)
  • Include the TextController anywhere you want to send a text message
  • Pass in a phone number into a new instance of TextController and then call the text() with e "text message" as the parameter.

Feel free to look at the ExampleController to see how it all works together.

You can’t perform that action at this time.