usinatech/linhadigitavel

用于在PHP中捕获PagSeguro汇票的条形码的包

安装: 1

依赖项: 0

建议者: 0

安全: 0

星星: 0

观察者: 2

分支: 0

开放问题: 0

类型:php-bundle

v0.0.1 2021-03-04 00:33 UTC

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;