onedrop/phoneutil

Last activity 05 Oct 2017 2 2602
composer require onedrop/phoneutil

Utilities to deal with phone numbers

dev-master

Version
dev-master
Type
neos-package
Release Date
Oct 05, 2017 13:05
Source
git
Distribution
zip
Requires
  • giggsey/libphonenumber-for-php: ^8.8
MIT 4b2a03d0e358aa3b41b9b4c8b21ba4c5ab244101

Readme excerpt

Onedrop.PhoneUtil

This Neos package provides some functionality to deal with phone numbers in your daily work with Flow and Neos.

Validation <?php namespace Vendor\Package\Domain\Model; use Neos\Flow\Annotations as Flow; class SomeEntity { /** * @var string * @Flow\Validate(type="Onedrop.PhoneUtil:PhoneNumber") */ protected $phoneNumber; } Eel utility

Reformat into daillable number (output as tel: link):

phoneNumber = ${Phone.toDiallableNumber(q(node).property('number'), 'DE')} # output '+4989123456789'

Geocode the phone number:

city = ${Phone.geocode(q(node).property('number'), 'DE')} # output 'München' city = ${Phone.geocode(q(node).…
Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 19 package(s).