usinatech / linhadigitavel
用于在PHP中捕获PagSeguro汇票的条形码的包
v0.0.1
2021-03-04 00:33 UTC
Requires
- php: ^7.4
- ramsey/uuid: ~4.0
This package is auto-updated.
Last update: 2024-09-04 08:35:00 UTC
README
用于在PHP中捕获PagSeguro汇票的条形码的包
在Debian上安装Tesseract
sudo apt-get install tesseract-ocr
在Mac上安装Tesseract: brew install tesseract
在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;