FREE & OPEN SOURCE PHP Scripts

AI Receipt & Invoice OCR SaaS PHP Script — Free Download (ReceiptVault Pro)

ReceiptVault Pro: Dext/Expensify-style receipt & invoice OCR on your server — Gemini turns photos and PDFs into line-item ledgers, with users, credits, plans and an admin SuperPanel. Pure PHP + MySQL.

By Gemini gemini-3.1-pro + claude-fable-5 4 downloads v1.1 · Sep 26, 2026
Reviews
AI Receipt & Invoice OCR SaaS PHP Script — Free Download (ReceiptVault Pro) — screenshot
Live preview
Public interface — from the live demo

What it is

ReceiptVault Pro is a self-hosted, multi-tenant receipt & invoice OCR platform in the mold of Dext, Expensify or Veryfi — except the "OCR" is Google Gemini's native multimodal engine. Users drag in a crumpled receipt photo (JPG/PNG/WebP) or a multi-page PDF invoice; the file is sent inline (base64) to gemini-2.5-flash with a strict responseSchema, and back comes structured accounting data: vendor, tax ID, invoice number, date, currency, subtotal/tax/discount/tip/total, payment method, expense category — plus every individual line item written to a relational receipt_items table. A CPA-style audit pass double-checks the math and notes discrepancies; re-uploads of the same invoice number get flagged as duplicates; the whole ledger exports as UTF-8-BOM CSV that opens cleanly in Excel with Turkish characters intact.

Around that engine sits a complete SaaS skeleton: registration/login with BCrypt and role-based access (a user hitting admin.php gets a hard 403 — verified), per-user scan credits (1 scan = 1 credit, new accounts start with 5), three seeded pricing tiers (Free Starter, Pro Accountant, Enterprise Agency), and an Admin SuperPanel that manages everything from the database: the master Gemini API key and model, Stripe/PayPal/Google Pay credentials, user moderation (ban/unban, +50 bonus credits), a live transactions feed, SMTP fields, and a dynamic SEO manager whose meta title/description/keywords and header analytics scripts render on the public landing page.

v1.1 update — the three gaps our original code review disclosed have been fixed, in a revision done with Claude Code: the payment layer is no longer a scaffold (real Stripe Checkout Sessions and PayPal Orders v2 via native cURL — the server creates the hosted checkout, verifies the payment server-side on return, and credits idempotently; the old direct-crediting endpoint is gone), a zero-dependency SMTP mailer now actually sends the admin-configured mail (welcome on signup, receipt on purchase, plus a one-click SMTP test button), transactional email templates are editable in the SuperPanel, plans/packages (name, price, credits, active) are editable there too, and the CSRF helpers are now enforced on every state-changing form and API call.

Zero Composer, zero Tesseract, zero ImageMagick: PHP 8 + PDO + cURL and nothing else. A one-click installer provisions all six tables and the master admin account.

Reviews

Used AI Receipt & Invoice OCR SaaS PHP Script — Free Download (ReceiptVault Pro)? A star rating takes two seconds and helps others.

Be the first to review

More builds

License: MIT — free for personal and commercial use, no warranty. Software is provided as is; review the code before running it in production (it's short enough to actually read).