Skip to content

settermjd/twilio-halloween-trick-or-treat-image-sender

Repository files navigation

Twilio Halloween Trick-or-Treat Image Sender

This is the code for my upcoming Twilio tutorial showing how to build a Halloween-themed Trick-or-Treat SMS image sender.

Requirements

  • PHP 7.4 or above
  • A free Twilio account
  • An account with a file hosting service.

Usage

To use the application:

  • Clone the repository locally
  • Copy .env.example as .env
  • Retrieve your Twilio account SID, Auth Token, and phone number from the Twilio Console and paste them into .env as the values for the first three variables (TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, & TWILIO_PHONE_NUMBER).
  • Upload one or more images to your file hosting service of choice, such as DigitalOcean Spaces, then set the base URL to the images as the value of IMAGE_URL_BASE in .env.
  • Start the application using PHP's built-in web server, by running the command below.
    php -S 0.0.0.0:8080 -t public &
  • Then, open http://localhost:8080 in your browser of choice.

About

This is the code for my Twilio Halloween Trick-or-Treat SMS image sender

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published