PHP code example of tagliatti / boleto-validator

1. Go to this page and download the library: Download tagliatti/boleto-validator 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/ */

    

tagliatti / boleto-validator example snippets



Tagliatti\BoletoValidator\BoletoValidator;

// Com mascara
BoletoValidator::convenio("83640000001-1 33120138000-2 81288462711-6 08013618155-1");

// Com outro tipo de mascara
BoletoValidator::convenio("83640000001 1 33120138000 2 81288462711 6 08013618155 1");

// Sem mascara
BoletoValidator::convenio("836400000011331201380002812884627116080136181551");


use Tagliatti\BoletoValidator\BoletoValidator;
    
// Com mascara
BoletoValidator::boleto("42297.11504 00001.954411 60020.034520 2 68610000054659");
    
// Sem mascara
BoletoValidator::boleto("42297115040000195441160020034520268610000054659");