FOMO Daily
Feed
Twilio·

Avoid Sending SMS to Landlines in PHP with Twilio's Lookup v2 API

Backend & APIsPHPTwilioSMSAPIs

TL;DR

Sending SMS to landlines can cause failed deliveries and unnecessary costs, but a phone number alone doesn’t reveal its type. This tutorial uses Twilio’s Lookup v2 API inside a reusable PHP filter to keep only mobile numbers before sending messages. The resulting application skips landlines and other non-mobile numbers and logs outgoing SMS attempts with Monolog.

Read the original post Sign in to mark as read or skip