Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.06 KB

Mask

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