Czech Invoice PDF for PHP
Generate Czech-compliant invoices (VAT, non-payer, EU reverse charge) as PDF from PHP with proper diacritics.
About this skill
What it does
A framework-free PHP library plus instructions: renders a daňový doklad or non-payer invoice as PDF with all mandatory fields, a yearly numbering series with database locking, VAT breakdown, EU reverse-charge wording and bilingual labels.
What you get
- InvoicePdf class (tFPDF + DejaVu, Czech diacritics verified)
- Numbering helper (SQL lock + file fallback)
- Data model and legal requirements reference
- Example script producing three sample invoices
Who it is for
PHP developers building shops, SaaS or internal tools for Czech companies.
What's inside
- SKILL.md (Czech, English summary)
- templates/InvoicePdf.php – render(array): PDF bytes; non-payer, domestic VAT, EU reverse charge
- templates/invoice-number.php – yearly series with DB lock or file fallback
- templates/invoice_sequences.sql
- scripts/example.php – three sample invoices
- references/data-model.md, references/legal-requirements-cz.md