PHP code example of vesperabr / fieldtize
1. Go to this page and download the library: Download vesperabr/fieldtize 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/ */
vesperabr / fieldtize example snippets
use Vespera\Fieldtize\Fields\Phone;
$phone = Phone::make('1144443333');
$phone->original(); // '1144443333'
$phone->get(); // '(11) 4444-3333'
$phone->raw(); // '+551144443333'
$phone->isValid(); // true
echo $phone; // '(11) 4444-3333'