Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Handle Symfony Events with Twilio SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Matthew Setter
Word Count
1,969
Company Posts That Month
45
Language
English
Hacker News Points
-
Post removed?
No
Summary

Symfony Events are an excellent way to build richer, more flexible, and maintainable applications. In this tutorial, you'll learn how to use Symfony's EventDispatcher Component to respond to events by sending SMS messages powered by Twilio's SMS API. You'll need prior experience with PHP and Symfony, as well as a Twilio account and mobile phone number. The application will dispatch a "usage.records.retrieved" event when the sole application route is requested, which subscribers can then respond to autonomously of any other process. The subscriber class uses Twilio's SMS API to send an SMS with the total cost of sending the messages. The tutorial guides you through creating the Event and Subscriber classes, configuring the application, and testing that it works.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.