PHP code example of onedrop / phoneutil

1. Go to this page and download the library: Download onedrop/phoneutil library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

onedrop / phoneutil example snippets



namespace Vendor\Package\Domain\Model;
use Neos\Flow\Annotations as Flow;

class SomeEntity {
    /**
     * @var string
     * @Flow\Validate(type="Onedrop.PhoneUtil:PhoneNumber")
     */
     protected $phoneNumber;
}