A simple, modern, and self-hosted invoice generator web app built with PHP and Tailwind CSS. No database required—data is stored in JSON files for easy setup and portability.
- Create, edit, and delete invoices
- Add multiple items per invoice (description, quantity, price)
- Option to include or exclude tax (18%)
- Manage multiple company profiles ("Invoice From")
- Add and display company banking details on invoices and PDFs
- All data stored in JSON files (no SQL or DB setup needed)
- Export invoices as PDF (using dompdf)
- Responsive UI with Tailwind CSS
- Edit invoices at any time
- List and manage all invoices from the dashboard
- Currency displayed as
Rs.
throughout the app and PDF (for Indian Rupees) - No database required—just PHP and file permissions
- PHP 7.4 or higher
- Composer (for PDF export)
- Web server (Apache, Nginx, XAMPP, etc.)
- Clone the repository:
git clone https://github.com/amigodheena/php-invoice-generator.git cd php-invoice-generator
- Install dependencies:
composer install
- Set permissions:
Ensure the
data/
directory is writable by the web server:chmod 755 data
- Access the app:
Open your browser and go to
http://localhost/path-to/php-invoice-generator
- Create Invoice: Click "Create New Invoice", fill in details, add items, and save.
- Edit Invoice: Click the edit icon next to any invoice in the dashboard.
- Export PDF: Click the PDF icon to download a PDF version of any invoice.
- Manage Companies: Add or edit your own company profiles under "Manage Companies". You can now add banking details for payment info.
- No Database: All data is stored in
/data
as JSON files. You can back up or move your data easily.
/index.php
— Dashboard (list invoices)/create_invoice.php
— Create new invoice/edit_invoice.php
— Edit existing invoice/view_invoice.php
— View invoice details/download_pdf.php
— Export invoice as PDF (with banking details and Rs. currency)/manage_companies.php
— Manage company profiles and banking details/delete_invoice.php
— Delete invoice/includes/functions.php
— Core PHP logic/data/
— JSON data storage (invoices, companies)/vendor/
— Composer dependencies (dompdf, etc.)/assets/
— CSS, JS, and static files
- All business logic is in
includes/functions.php
. - UI is styled with Tailwind CSS.
- PDF export uses dompdf.
- No database required—just PHP and file permissions.
- Currency is consistently shown as
Rs.
for Indian Rupees in all views and PDFs.
/data/
and/vendor/
are ignored by default (see.gitignore
).
MIT License. Free for personal and commercial use.