nowo-tech / report-kit-bundle
Reports and scheduled exports for Symfony: report types with parameter schemas, PDF / XLSX / CSV / JSON renderers, server-side SVG charts, on-screen report pages and per-owner scheduled e-mail subscriptions.
Package info
github.com/nowo-tech/ReportKitBundle
Type:symfony-bundle
pkg:composer/nowo-tech/report-kit-bundle
Fund package maintenance!
Requires
- php: >=8.2 <8.7
- doctrine/dbal: ^3.9 || ^4.0
- doctrine/orm: ^3.3
- doctrine/persistence: ^3.4 || ^4.0
- nowo-tech/brand-contracts: ^1.1
- nowo-tech/form-kit-bundle: ^2.24
- nowo-tech/migrations-kit-contracts: ^1.0
- nowo-tech/transaction-contract: ^1.0
- nowo-tech/transaction-doctrine: ^1.9
- nowo-tech/ui-kit-bundle: ^2.68
- psr/clock: ^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/http-foundation: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/rate-limiter: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-core: ^7.4 || ^8.0
- symfony/translation: ^7.4 || ^8.0
- symfony/translation-contracts: ^3.5
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/uid: ^7.4 || ^8.0
- twig/extra-bundle: ^3.21
- twig/string-extra: ^3.21
- twig/twig: ^3.21
Requires (Dev)
- deptrac/deptrac: ^4.7.2
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- dompdf/dompdf: ^3.1
- dragonmantank/cron-expression: ^3.4
- friendsofphp/php-cs-fixer: ^3.0
- igor-php/igor-php: ^0.10.1 || ^0.11.0
- nowo-tech/controller-kit-bundle: ^2.3.1
- nowo-tech/phpstan-frankenphp: ^1.3
- openspout/openspout: ^4.28 || ^5.0
- 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
- smalot/pdfparser: ^2.12
- symfony/filesystem: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/mailer: ^7.4 || ^8.0
- symfony/messenger: ^7.4 || ^8.0
- symfony/phpunit-bridge: ^7.4 || ^8.0
- symfony/scheduler: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- symfony/twig-bridge: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
Suggests
- dompdf/dompdf: ^3.1: PDF exports and PdfDocumentRendererInterface (Q-O3)
- dragonmantank/cron-expression: ^3.4: the Symfony Scheduler recipe of schedule.enabled (contract §9)
- nowo-tech/controller-kit-bundle: ^2.3.1: CSV formula guard shared with ControllerKit (Q-O4)
- nowo-tech/mail-kit-bundle: Mail readiness of the scheduled runs (an unready mailer skips the run, Q-O9)
- nowo-tech/migrations-kit-bundle: nowo:migrations:check-key-collations asserts the binary NO PAD collation of the identifier columns (REQ-SEC-006)
- openspout/openspout: ^4.28 || ^5.0: XLSX exports (Q-O3)
- symfony/flex: For automatic recipe installation
- symfony/mailer: ^7.4 || ^8.0: the default mailer of the scheduled reports (contract §6.3)
- symfony/messenger: ^7.4 || ^8.0: run the scheduled reports on a worker (contract §9)
- symfony/scheduler: ^7.4 || ^8.0: the schedule nowo_report_kit (schedule.enabled)
Provides
None
Conflicts
- dompdf/dompdf: <3.1
- nowo-tech/controller-kit-bundle: <2.3.1
- openspout/openspout: <4.28
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 20:52:54 UTC
README
⭐ Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.
Reports and scheduled exports for Symfony: report types with parameter schemas, PDF / XLSX / CSV / JSON renderers, server-side SVG charts, on-screen report pages and per-owner scheduled e-mail subscriptions.
🚧 Status: S3 (subscriptions), pre-1.0. The package is built slice by slice from its design contract (docs/CONTRACT.md, 221-C). S1 shipped the report model, the type registry and parameter schema, the CSV / XLSX / PDF / JSON renderers, SVG charts, the closed PDF runner and the brand resolver; S2 the scope and access SPIs, the report builder and the report pages with their export routes and rate limits; S3 adds the scheduled e-mail subscriptions (tables, schedule dialog, claim, runs as the owner, mail, auto-pause, Messenger, Scheduler, commands). The operator page, GDPR, bridges and the API land with the next slices in docs/ROADMAP.md.
📋 Compatible with Symfony 7.4, 8.0 and 8.1 · PHP 8.2+ (Symfony 8.x requires PHP 8.4+)
This bundle is built for FrankenPHP worker mode with the kernel kept alive and not reset between requests: no request state in services, a worker test (one kernel, 2,000 requests) and a worker export test (500 alternating PDF / XLSX / CSV exports by two owners in two locales, no temporary file left, flat memory).
Standard Symfony by default, DDD / hexagonal opt-in: zero configuration in a standard project; public ports are interfaces and value objects, bundle-owned tables are mapped in XML and referenced by id, the bundle never flushes your EntityManager.
Features
Available: the report model, the type registry with parameter schemas, every renderer, the SVG charts, the generic PDF runner (S1), the report pages with scope / access SPIs, export routes and rate limits (S2) and the scheduled e-mail subscriptions (S3, USAGE). Planned (see the roadmap): operator page, GDPR, bridges and the API.
- Report model:
ReportandReportSection(key values with delta, tone and sparkline; tables with optional chart kind and presentation style; truncation note), badges, glance line, link. - Report type registry (tagged
ReportTypeInterface) with a parameter schema (periods, context, typed extras), availability per viewer and a configurable menu order. - Renderers: PDF (closed Dompdf: no remote, no JavaScript, no PHP, private chroot), XLSX (OpenSpout streaming), CSV (UTF-8 BOM, formula-injection guard), JSON, and server-side SVG charts with light / dark variants. Dompdf and OpenSpout are suggested: a format is on only when its engine is installed (Q-O3).
- Generic PDF runner
PdfDocumentRendererInterfacefor any template (invoices, receipts, mandates). - Pages on UiKit + FormKit: report list, report page (filter form, Export menu; Schedule by e-mail dialog in S3), export routes with per-person rate limits, host SPIs for the contexts a person may report on and the permission per type.
- Scheduled subscriptions: daily / weekly / monthly at an hour in the owner's time zone, atomic claim, idempotent run per slot, built as the owner with an access re-check, branded mail to the owner only, auto-pause with a reason.
- Operator page, UserKit eraser and export, bridges for brand-contracts, MailKit, NotifyKit, AuditKit and
ApiTokenBundle; optional public API
<prefix>/reports/v1(off by default).
Installation
composer require nowo-tech/report-kit-bundle
See docs/INSTALLATION.md. Nothing is registered while nowo_report_kit.enabled is false.
Configuration
# config/packages/nowo_report_kit.yaml nowo_report_kit: enabled: true # false (default) registers nothing
Write a report type and export it: docs/USAGE.md.
Every key of the contract is already accepted (strict tree): docs/CONFIGURATION.md.
Documentation
- Installation
- Configuration
- Usage (incl. using it from a DDD / hexagonal application)
- Templates
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
- Roadmap (slices and open questions)
Additional documentation
- Design contract (221-C)
- Architecture
- PSR evaluation (REQ-CS-007)
- Demo with FrankenPHP
- FrankenPHP worker audit (kernel not reset)
- Concurrency (REQ-RUNTIME-003)
- GitHub Actions CI requirements
Requirements
- PHP >= 8.2, < 8.7
- Symfony 7.4, 8.0 or 8.1
Demo
demo/symfony8: Symfony 8.1, FrankenPHP worker mode, MySQL, on http://localhost:8223 (make -C demo up), Mailpit on http://localhost:8224. The demo shell is UiKit; sign in as alice or bob (demo users, no password) and open /reports; schedule a report with Schedule by e-mail, then use Send my due reports now on the home page and read the mail in Mailpit. Run the Playwright e2e with make test-e2e and refresh the screenshots with make demo-screenshots.
Tests and coverage
make test # PHPUnit in Docker make test-coverage-100 # fails below 100 % of src/ make release-check # every gate, demo included
- Tests: PHPUnit (unit, golden files for CSV / XLSX / JSON, PDF text extraction, Dompdf-closed tests, integration: kernel, both host kinds, database on SQLite / MySQL / PostgreSQL, kept-alive worker and worker export loop)
- PHP: 100% (gate
make test-coverage-100) - TS/JS: N/A
- Python: N/A
License
MIT. See LICENSE.
Author
Created by Héctor Franco Aceituno at Nowo.tech.



