Ah, I thought you just wanted to verify the validity of the phone number. If you’re trying to verify if the phone number belongs to your user than an SMS with a verification code is the only way I can think of to do that.
How many numbers do you need to verify? API-based SMS messaging services are pretty inexpensive. For example Twilio runs about $7.50 per 1000 text messages.
So this is a complete shot in the dark as I have no idea how any of this works, if this still works, as I’m not a dev, but we used to send text message alerts to our on call techs by having them tell us what mobile carrier they used. The alert would be setup to send an email to [email protected] or something to that effect. If you had a dropdown where the user could choose their carrier and then input their phone number, you could send out an email which their carrier would turn into SMS for you.