php-canonical-phonenumbers Example $culture = new Culture('DE', 'de'); $service = new CanonicalPhoneNumberService(); $phoneNumber = $service->getCanonicalPhoneNumber('+49 30 12345678', $culture); echo (string) $phoneNumber;