usinatech / linhadigitavel
Pacote para capturar a linha digitável do boleto do PagSeguro em PHP
Package info
github.com/usinatech/linhadigitavel
Type:php-bundle
pkg:composer/usinatech/linhadigitavel
v0.0.1
2021-03-04 00:33 UTC
Requires
- php: ^7.4
- ramsey/uuid: ~4.0
This package is auto-updated.
Last update: 2026-03-04 11:49:59 UTC
README
Pacote para capturar a linha digitável do boleto do PagSeguro em PHP
Instalando o Tesseract no Debian:
sudo apt-get install tesseract-ocr
Instalando o Tesseract no Mac: brew install tesseract
Utilizando o pacote no seu projeto PHP:
<?php
use UsinaTech\LinhaDigitavel\LinhaDigitavel;
require __DIR__ . '/vendor/autoload.php';
$boletoURL = 'https://pagseguro.uol.com.br/checkout/payment/booklet/print.jhtml?c=xxxxx';
$ld = new LinhaDigitavel;
echo $ld->capture($boletoURL) . PHP_EOL;