Search by

nowo-tech / invoice-kit-bundle

HecFranco

Tenant-aware invoicing for Symfony: issuer and numbering series per tenant, drafts, gapless numbers drawn at issue, immutable issued invoices, VAT per rate group in integer minor units, a branded PDF stored with its SHA-256, sending through the host, a JSON API and agent-ready operations; off by def

Package info

github.com/nowo-tech/InvoiceKitBundle

Documentation

Type:symfony-bundle

pkg:composer/nowo-tech/invoice-kit-bundle

Fund package maintenance!

HecFranco

Statistics

Installs: 48

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.4 2026-11-30 14:32 UTC

README

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars Coverage

⭐ Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.

Tenant-aware invoicing for Symfony: an issuer and numbering series per tenant, drafts, gapless numbers drawn at issue, immutable issued invoices, VAT per rate group in integer minor units, a branded PDF stored with its SHA-256, sending through the host, a JSON API and agent-ready operations. Off by default, on a private entity manager, with a UiKit + FormKit UI in 7 locales.

Status: 0.1.0 (block A: issuer, series, drafts, issue, PDF, send) is being prepared. Rectifying invoices and pro-formas (B), VeriFactu (C), payments (D) and exports (E) follow.

📋 Compatible with Symfony 7.4 and 8.x on PHP 8.2 – 8.6.

FrankenPHP Friendly Worker Mode

This bundle is FrankenPHP worker mode friendly: it is tested with the kernel kept alive and not reset between requests (see FrankenPHP worker audit).

Table of contents

Features

  • Issuer per tenant: kit storage with the IBAN sealed at rest (libsodium or DoctrineEncrypt), or the host's issuer port.
  • Series and gapless numbering: the host's series catalogue, kit-owned counters per tenant, type, series and period, drawn under a row lock at issue.
  • Drafts: blank or from a host source (quotes, deals), lines with discounts, a DRAFT preview PDF and a source ledger.
  • Immutable issued invoices: issuer and customer snapshots, a domain guard, a flush guard and a SHA-256 re-check on download.
  • Tax engine: integer minor units per currency, VAT per rate group, exempt and export rules, half away from zero.
  • PDF and send: ReportKit renderer, insert-only document store, sending through the host's mail sender (Symfony Mailer adapter) with a delivery log.
  • UI, API and agents: UiKit + FormKit pages in 7 locales, a JSON API under <prefix>/invoicing/v1 with OpenAPI, and invoice_* operations for MCP hosts (off by default).
  • Access and GDPR: tenant → feature gate → actor → permission on every call (404 on denial by default), audit entries, GDPR export and erasure that keep issued invoices.
  • Runtime: private entity manager or the host's default one, four database engines, FrankenPHP worker mode.

Installation

composer require nowo-tech/invoice-kit-bundle

Then follow docs/INSTALLATION.md (entity manager, secret key, tables, routes) and docs/CONFIGURATION.md.

Requirements

PHP >=8.2 <8.7 with ext-sodium, Symfony ^7.4 || ^8.0, Doctrine ORM 3, nowo-tech/transaction-doctrine, nowo-tech/ui-kit-bundle, nowo-tech/form-kit-bundle. Optional: nowo-tech/report-kit-bundle (PDF renderer), symfony/mailer, nowo-tech/doctrine-encrypt-bundle.

Screenshots

Invoice list with two issued invoices and one draft, filters by status, delivery, series and dates
Invoices: gapless numbers drawn at issue, drafts without a number
An issued invoice with its lines, VAT per rate group, stored PDF and one send
An issued invoice: VAT per rate group, stored PDF, sends

Demo

demo/symfony7 (Symfony 7.4, http://localhost:8273) and demo/symfony8 (Symfony 8.1, http://localhost:8272): FrankenPHP worker mode, MySQL, UiKit + FormKit, ReportKit PDFs (Dompdf), Symfony Mailer on the null transport, in-memory users ana (reads), mia (drafts, issues, sends) and admin (also the settings), password demo. Run make -C demo up-symfony8, then make test-e2e for the Playwright run and make demo-screenshots (fresh stack) to refresh docs/images/demo/*.webp; make demo-smoke boots each demo and expects HTTP 200. See docs/DEMO-FRANKENPHP.md.

Development

make up, make test, make test-coverage-100, make phpstan, make cs-check, make deptrac, make release-check.

Documentation

Additional documentation

Tests and coverage

  • Tests: PHPUnit unit and integration suites (make test), the Database suite on SQLite, MySQL 8.4, MariaDB 11.4 and PostgreSQL 16 in two time zones (make test-with-db), and Playwright e2e on demo/symfony8 (make test-e2e).
  • PHP (Lines): 100% of src/; make test-coverage-100 and the CI Code Coverage job fail below 100% (REQ-TEST-003).
  • TS/JS: N/A (no shipped scripts; the Playwright specs test the demo)
  • Python: N/A

License

MIT — see LICENSE.

Contributing

See CONTRIBUTING.md and BRANCHING.md.