Self-host invoice-as-a-service
v2026-10-23REST API that turns JSON into professional PDF invoices
- Stars
- 218
- Port
- 8000 (HTTP API (php artisan serve))
- Requires
- Composer, PHP
docker.io/samber/invoice-as-a-serviceWhat is invoice-as-a-service?
Invoice as a service is a Laravel-based REST API that creates professional PDF invoices from JSON data sent via POST. It takes invoice details like line items, customer and company information, tax rates, currency, and optional payment links, then renders a PDF using Dompdf with a Bootstrap-styled template. The resulting PDF can be sent back in the response or pushed to AWS S3, FTP servers, webhooks, or Zapier. A hosted API endpoint is available at invoice-as-a-service.cleverapps.io, and self-hosted deployment is documented using Composer with PHP's built-in server or via Docker running PHP 8.0-fpm on port 8000. The stack requires PHP 7.3 or newer and Laravel 6.x, with dompdf for PDF generation and Guzzle for outbound HTTP. The API validates all input fields and supports English and Spanish. There is no user authentication — the service is a stateless API endpoint.
Should you self-host invoice-as-a-service?
invoice-as-a-service scores 43/100 on selfhost.directory (how scoring works) and ranks #12 of 13 in Billing. It has 218 GitHub stars.
It shipped 1 stable release in the past year. The latest, v2026-10-23, came out on 23 October 2026.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in PHP.
Its closest alternative on selfhost.directory is polar (71/100, 10 435 stars). It scores higher overall, so compare the two before you pick. See invoice-as-a-service vs polar side by side.
Features
- Company logo support
- Customizable invoice template
- Multi-language Support
- Multiple delivery destinations
- Paid stamp
- Payment link
- PDF invoice generation from JSON
- REST API
invoice-as-a-service README
More in Billing
invoice-ninjaSelf-hosted invoicing platform for freelancers and small businesses: invoices, quotes, online payments, recurring billing, expenses, projects and time tracking.
InvoicePlaneSelf-hosted, open-source invoicing app covering quotes, invoices, clients and payments, with EU e-invoice XML, customizable PDF templates and Stripe/PayPal checkout.
Kill BillSelf-hosted, open-source subscription billing engine: catalogs, usage-based pricing, invoices, dunning, tax plugins and payment-gateway plugins for Stripe or Adyen.
LagoSelf-hosted, open-source billing engine: meter product usage, price it with plans and prepaid credits, and bill customers with generated invoices.
lotusAn open-source, self-hosted pricing and billing engine for SaaS teams: build usage-based or per-seat plans, manage subscriptions, and test pricing experiments.
meteroidSelf-hosted, open-source billing and monetization platform: usage metering, subscriptions, quotes/CPQ, invoicing, entitlements and hybrid pricing, built in Rust.
OpenEMRSelf-hosted, open-source EHR and clinic management suite with scheduling, e-billing, prescriptions, FHIR APIs and a patient portal; runs on Docker or a LAMP stack.
openmeterOpenMeter is a self-hosted, open-source metering and billing platform for AI and API products that ingests usage events in real time.
paymenterOpen-source billing platform for hosting companies: automated subscriptions, Stripe/PayPal/Mollie gateways, hosting-panel integrations and a WHMCS importer.
pnlcsPNLCS is a free, open-source, self-hosted hosting billing platform and WHMCS alternative with invoicing, domains, SSL, tickets, Docker apps, and Proxmox VPS sales.
polarUsage-based billing, subscriptions and merchant-of-record platform for AI startups; open-source Apache-2.0 code behind a hosted dashboard.
SHKeeperSHKeeper is a self-hosted, open-source cryptocurrency payment processor and gateway for merchants, accepting 19+ coins with invoices, payouts and CMS modules.

0 comments