assoconnect/libphone-dom-tom

libphonenumber extension to support French DOM TOM numbers in international format.

v1.0.2 2017-09-29 14:49 UTC

This package is auto-updated.

Last update: 2024-12-07 13:34:39 UTC


README

PHP extension of https://github.com/googlei18n/libphonenumber to support French DOM-TOM numbers in international format.

Tries to fix https://github.com/googlei18n/libphonenumber/issues/274

How to use it

<?php

// phone number in Guadeloupe
echo AssoConnect\LibphoneDOMTOM::parse('+33590925585');
// => +590590925585

// phone number in Metropolitan France 
echo AssoConnect\LibphoneDOMTOM::parse('+33123456789');
// => +33123456789