This method applies the Brazilian CEP (postal code) mask to the string.
$string = '44555666'; $string = SM::maskBrCep($string); // or $string = SM::make($string) ->maskBrCep(); echo $string; // 44.555-666