1. Go to this page and download the library: Download wallacemaxters/masker 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/ */
wallacemaxters / masker example snippets
use WallaceMaxters\Masker\Masker;
$masker = new Masker();
$masker->mask('31995451199', '(00) 00000-0000'); // '(31) 99545-1199'
// or
$masker('31995451199', '(00) 00000-0000'); // '(31) 99545-1199'