PHP code example of fernandovaller / vhelpers

1. Go to this page and download the library: Download fernandovaller/vhelpers 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/ */

    

fernandovaller / vhelpers example snippets


use FVCode\VHelpers\Helper;

$cpf = '92454026066';

echo Helper::mask($cpf, '###.###.###-##');
// 924.540.260-66;

$date = '2021-03-14';

$date_in_br = Helper::dateBR($date);
// 14/03/2021

$description_us = 'Monday, 14 March 2021';

echo Helper::dateTranslateUsToBr($description_us);
// Segunda, 14 Março 2021;

$url = 'www.google.com';

Helper::redirect($url);