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
Language:Shell
Type:symfony-bundle
pkg:composer/nowo-tech/report-kit-bundle
Fund package maintenance!
Requires
- php: >=8.2 <8.6
- symfony/config: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
Requires (Dev)
- doctrine/dbal: ^3.9 || ^4.0
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- friendsofphp/php-cs-fixer: ^3.0
- igor-php/igor-php: ^0.10.1
- nowo-tech/phpstan-frankenphp: ^1.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/filesystem: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/phpunit-bridge: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
Suggests
- symfony/flex: For automatic recipe installation
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-11 12:41:20 UTC
README
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: S0 scaffold, no release yet. The package is built slice by slice from its design contract (docs/CONTRACT.md, 221-C). S0 ships the bundle class, the strict configuration tree and every quality gate; the features below land with the 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) from the first slice.
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 (planned, see the roadmap)
- 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).
- 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: false
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)
- Roadmap (slices and open questions)
- Contract
- Security
- FrankenPHP worker audit
- Demo with FrankenPHP
- Upgrading 路 Changelog 路 Release
- Architecture 路 PSR 路 Spec-driven development 路 Spec Kit
- Contributing 路 GitHub CI 路 Engram
Requirements
- PHP >= 8.2, < 8.6
- 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).
Tests and coverage
make test # PHPUnit in Docker make test-coverage-100 # fails below 100 % of src/ make release-check # every gate, demo included
- PHP: 100 % of
src/(gate in CI).
License
MIT. See LICENSE.
Author
Created by H茅ctor Franco Aceituno at Nowo.tech.
