Skip to content

Update to work with PHP 8.4 and allow more customization#6

Open
djyotta wants to merge 11 commits into
aaronpk:masterfrom
djyotta:master
Open

Update to work with PHP 8.4 and allow more customization#6
djyotta wants to merge 11 commits into
aaronpk:masterfrom
djyotta:master

Conversation

@djyotta

@djyotta djyotta commented Dec 17, 2025

Copy link
Copy Markdown

Improvements

  • added a checks.ini config file
  • allow for check number lower than 1000 by left padding numbers to 4 digits
  • added ability to customize deposit line
  • added ability to print a border as a cutting guide (good for when using plain office paper with no perforations)

NOTE: if using any "special" characters (anything other than 7-bit ASCII), then be sure to encode your checks.ini file as CP-1252 and not UTF-8 as the underlying FPDF library doesn't support UTF-8

Non-functional changes

  • move fonts into lib/font which (if present) is searched for fonts by both FPDF and tFPDF.

Comment thread lib/check-generator.php
$pdf->SetXY( $x + 4.5 + .06, $y + .83);
$pdf->Cell( 1, .25, $amt );
} else {
$amt = '$';

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the dollar sign to be pre-printed even when amount is empty

@djyotta djyotta marked this pull request as ready for review December 17, 2025 20:11
@djyotta

djyotta commented Jun 10, 2026

Copy link
Copy Markdown
Author

@aaronpk Thanks for this work. It's the only OSS I found to print the MICR line on the check. I've printed a few checks for both mobile deposit and also for mailing. Standard inkjet - no MICR ink. So far no issues. I even paid my state taxes with a home made check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant