Format phone numbers to E.164 international format. Supports country code detection.
E.164 is the international standard for phone number formatting, using a + sign followed by the country code and subscriber number with no spaces or punctuation. This format is required by most APIs and telephony services like Twilio and WhatsApp.