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

Create an Artisan Command to View Twilio Calls

Blog post from Twilio

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

A custom Artisan command is created to list voice calls on a Twilio account and print the call information in tabular form. The command uses Laravel's environment variable functionality to securely store and retrieve Twilio credentials, making it easy to interact with the Twilio APIs. The command retrieves all calls on the user's account, formats the date and time of each call, and prints the call details in a table format. The command also includes an option to display the dates in short or long format. The code for creating the custom Artisan command is minimal, thanks to the use of the official Twilio PHP Helper Library and Laravel's built-in features.

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.