nowo-tech / invoice-kit-bundle
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
Type:symfony-bundle
pkg:composer/nowo-tech/invoice-kit-bundle
Fund package maintenance!
Requires
- php: >=8.2 <8.7
- ext-sodium: *
- doctrine/dbal: ^3.8.2 || ^4.0
- doctrine/doctrine-bundle: ^2.8 || ^3.0
- doctrine/orm: ^3.7
- doctrine/persistence: ^3.4 || ^4.0
- nowo-tech/form-kit-bundle: ^2.25.1
- nowo-tech/transaction-contract: ^1.1
- nowo-tech/transaction-doctrine: ^1.10.1
- nowo-tech/ui-kit-bundle: ^2.74
- psr/clock: ^1.0
- psr/event-dispatcher: ^1.0
- psr/log: ^2.0 || ^3.0
- symfony/clock: ^7.4 || ^8.0
- symfony/config: ^7.4 || ^8.0
- symfony/console: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/event-dispatcher: ^7.4 || ^8.0
- symfony/form: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/http-foundation: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/polyfill-intl-normalizer: ^1.28
- symfony/rate-limiter: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-csrf: ^7.4 || ^8.0
- symfony/translation: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/uid: ^7.4 || ^8.0
- symfony/validator: ^7.4 || ^8.0
- twig/extra-bundle: ^3.12
- twig/string-extra: ^3.12
Requires (Dev)
- deptrac/deptrac: ^4.7.2
- friendsofphp/php-cs-fixer: ^3.0
- igor-php/igor-php: ^0.10.1 || ^0.11.0
- nowo-tech/phpstan-frankenphp: ^1.3
- nowo-tech/report-kit-bundle: ^0.3
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.5
- rector/rector: ^2.0
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/css-selector: ^7.4 || ^8.0
- symfony/dom-crawler: ^7.4 || ^8.0
- symfony/filesystem: ^7.4 || ^8.0
- symfony/mailer: ^7.4 || ^8.0
- symfony/mime: ^7.4 || ^8.0
- symfony/phpunit-bridge: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
Suggests
- nowo-tech/doctrine-encrypt-bundle: Seal the issuer IBAN with DoctrineEncrypt (secrets.box: Nowo\InvoiceKitBundle\Bridge\DoctrineEncrypt\DoctrineEncryptInvoiceSecretBox)
- nowo-tech/report-kit-bundle: ^0.3: invoice PDFs through ReportKit's closed PDF runner (documents.report_kit: true)
- symfony/mailer: Send invoices through the Symfony Mailer adapter (mail.symfony_mailer.enabled)
- symfony/security-bundle: Default role-map access checker and actor resolver
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 21:06:16 UTC
README
⭐ 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.
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
- Installation
- Requirements
- Screenshots
- Demo
- Development
- Documentation
- Tests and coverage
- License
- Contributing
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/v1with OpenAPI, andinvoice_*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
Invoices: gapless numbers drawn at issue, drafts without a number |
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
- Installation
- Configuration
- Usage
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- Contract
- API and OpenAPI
- Architecture
- Concurrency
- FrankenPHP worker audit
- Demo with FrankenPHP
- PSR evaluation
- GitHub CI
- Branching
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 ondemo/symfony8(make test-e2e). - PHP (Lines): 100% of
src/;make test-coverage-100and 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.


