PHP code example of phlllpe / mask
1. Go to this page and download the library: Download phlllpe/mask 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/ */
phlllpe / mask example snippets
use Mask\Predefined\Br\Cep;
use Mask\Predefined\Br\Cpf;
...
public function foo($cepValue)
{
...
$maskCep = (new Cep())->mask($cepValue)->toString();
...
}
public function bar($cpfValue)
{
...
echo (new Cpf())->mask($cpfValue);
...
}