phlllpe/mask

v2.1.0 2022-08-23 21:21 UTC

README

Scrutinizer Code Quality Code Coverage Build Status SensioLabsInsight

  • Mask

Install

composer require phlllpe/mask

Usage

        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);
            ...
        }