BlaM / fix-for-e164

Simple PHP function that attempts to format German phone numbers to E.164 format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix-for-e164

Simple PHP function that attempts to format German phone numbers coming from a free text input to E.164 format.

Far from perfect (humans are so random), but according to our test working in most cases.

Usage:

$fixed = fixForE164('0172-8899999');

About

Simple PHP function that attempts to format German phone numbers to E.164 format

License:MIT License


Languages

Language:PHP 100.0%