PHP code example of lucasferro0 / boleto-winner

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

    

lucasferro0 / boleto-winner example snippets


$writableLine = BoletoWinner::toWritableLine($barcode);

$barcode = BoletoWinner::toBarcode($writableLine);

$isBankBill = (new BoletoValidator())->verifyWritableLine($writableLine);

$isBankBill = (new BoletoValidator())->verifyBarcode($barcode);

$isConvenantBill = (new ConvenioValidator())->verifyWritableLine($writableLine);

$isConvenantBill = (new ConvenioValidator())->verifyBarcode($barcode);