PHP code example of andcarpi / pt-br-validator

1. Go to this page and download the library: Download andcarpi/pt-br-validator 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/ */

    

andcarpi / pt-br-validator example snippets


    andcarpi\PtBrValidator\ValidatorProvider::class,
    

$validator = Validator::make(
    ['telefone' => '(77)9999-3333'],
    ['telefone' => '

Validator::make($valor, $regras, ['celular_com_ddd' => 'O campo :attribute não é um celular'])