Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Invoice PDF Example

This example demonstrates creating a professional invoice PDF document.

Run

php invoice.php

Features Demonstrated

  • Professional invoice layout
  • Header with colored background
  • Company and customer information sections
  • Itemized table with products/services
  • Subtotal, tax, and total calculations
  • Highlighted total amount
  • Payment instructions
  • Professional styling with colors

Output

Creates a professional invoice PDF saved as output.pdf in this directory.

Customization

You can easily customize this example to:

  • Add your company logo (using the image() method)
  • Change colors to match your brand
  • Modify tax rates and calculations
  • Add more line items
  • Include payment terms and conditions
  • Add custom fields (PO number, project reference, etc.)