nowo-tech / chat-kit-bundle
Floating chat dock for Symfony: direct messages, channels and a support inbox with realtime (Mercure), presence, read receipts, typing, Web Push, customizable Twig templates and theme tokens.
Package info
github.com/nowo-tech/ChatKitBundle
Type:symfony-bundle
pkg:composer/nowo-tech/chat-kit-bundle
Requires
- php: >=8.3 <8.7
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- doctrine/orm: ^3.3
- nowo-tech/form-kit-bundle: ^2.17
- nowo-tech/transaction-contract: ^1.0
- nowo-tech/transaction-doctrine: ^1.9
- nowo-tech/ui-kit-bundle: ^2.58.1
- psr/cache: ^3.0
- psr/log: ^3.0
- symfony/asset: ^7.4 || ^8.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/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/rate-limiter: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- symfony/security-csrf: ^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
- symfony/ux-icons: ^2.25 || ^3.0
- twig/extra-bundle: ^3.12
- twig/string-extra: ^3.12
- twig/twig: ^3.12
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- igor-php/igor-php: ^0.9.7 || ^0.10.0 || ^0.11.0
- nowo-tech/correlation-contract: ^0.1
- nowo-tech/phpstan-frankenphp: ^1.4
- nowo-tech/runtime-setting-contract: ^1.0
- nowo-tech/search-kit-bundle: ^1.10
- nowo-tech/storage-kit-bundle: ^2.2
- phpstan/phpstan: ^2.1
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.5 || ^11.5
- rector/rector: ^2.0
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/css-selector: ^7.4 || ^8.0
- symfony/mercure: ^0.6 || ^0.9 || ^0.10
- symfony/messenger: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
- vincentlanglet/twig-cs-fixer: ^3.0 || ^4.0
Suggests
- minishlink/web-push: Web Push notifications when the app is not open (implement ChatPushSenderInterface)
- nowo-tech/correlation-contract: ^0.1 — (2.12) the client API's request_id and X-Request-Id are the host's correlation id when it registers a CorrelationIdProviderInterface service
- nowo-tech/runtime-setting-contract: ^1.0 — for runtime.retention_days (1.32): the retention read from a runtime setting (.env or database, changed live with nowo:runtime-setting:set)
- nowo-tech/search-kit-bundle: ^1.10 — for search_kit.enabled: chat messages (1.37) and conversations (1.38) as groups of the Ctrl/⌘+K palette and its results page
- nowo-tech/storage-kit-bundle: ^2.2 — for attachments.enabled (2.7) without attachments.storage: chat files stored through its generic-file ports (2.12: or the host's own ChatAttachmentStorageInterface), with a mandatory scan (also needs symfony/messenger)
- symfony/mercure-bundle: Realtime delivery of messages, presence, typing and read receipts (default ChatRealtimeInterface)
- symfony/messenger: Asynchronous push fan-out; required for attachments (2.7: the scan and the object removal run in Messenger workers)
Provides
None
Conflicts
- nowo-tech/correlation-contract: <0.1 || >=1.0
- nowo-tech/runtime-setting-contract: <1.0 || >=2.0
- nowo-tech/search-kit-bundle: <1.10 || >=2.0
- nowo-tech/storage-kit-bundle: <2.2 || >=3.0
Replaces
None
- dev-main
- v2.13.0
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.40.2
- v1.40.0
- v1.39.1
- v1.39.0
- v1.38.1
- v1.38.0
- v1.37.0
- v1.36.1
- v1.36.0
- v1.35.0
- v1.34.1
- v1.34.0
- v1.33.0
- v1.32.0
- v1.31.1
- v1.31.0
- v1.30.0
- v1.29.0
- v1.28.0
- v1.27.1
- v1.27.0
- v1.26.4
- v1.26.3
- v1.26.2
- v1.26.1
- v1.26.0
- v1.25.1
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.1
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.1
- v1.16.0
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- dev-feat/2.13.0-client-api
- dev-feat/2.12.0-files-previews
- dev-feat/2.11.0-desktop
- dev-feat/dialogs-on-open
- dev-feat/2.9.0-module-forbidden
- dev-feat/2.8.0-card-changed
- dev-feat/2.7.0-attachments
- dev-fix/assets-005-once-guard
- dev-feat/2.6.0-secret-cards-slots
- dev-ci/zawd-dependabot-assets
- dev-fix/demo-e2e-failures
- dev-docs/roadmap-crm-254
- dev-feat/script-loaded-banner
- dev-ci/release-gates
- dev-fix/yr-c-followups
- dev-docs/speckit-inventory-2026-11-22
- dev-chore/i18n-catalogue-test
- dev-fix/yp-follow-ups
- dev-feat/ddd-query-ports
- dev-feat/ux-1171
- dev-fix/i18n-catalogue
- dev-feat/arch001-major-2.0.0
- dev-chore/1.x-maintenance
- dev-chore/demo-platform-shell
- dev-fix/pg-user-reference-schema
- dev-fix/schema-fk-collation
- dev-feat/search-modal-1.40
- dev-fix/search-page-phone-anatomy
- dev-ci/use-ci-actions
- dev-feat/arch001-notice-1.39.0
- dev-docs/demo-align-uikit-formkit
- dev-ci/light-mode-pr
- dev-fix/dock-reserve-scrollbar-header
- dev-chore/transaction-doctrine-1.8
- dev-fix/private-em-tests-dbal3
- dev-feat/searchkit-conversations-1.38
- dev-feat/message-search-137
- dev-fix/dialog-centring
- dev-feat/1.36-forward-threads-history
- dev-ci/deps-floor
- dev-docs/roadmap-gap-review
- dev-feat/message-menu-1-35
- dev-fix/playwright-image-derive
- dev-fix/echo-before-post
- dev-feat/conflict-409
- dev-feat/message-context-menu
- dev-chore/deps-2026-11-18
- dev-chore/phase-c-req
- dev-chore/demo-uikit-formkit
- dev-feat/runtime-retention
- dev-fix/retention-fail-closed
- dev-feat/retention-provider
- dev-feat/load-readiness
- dev-feat/author-badge
- dev-feat/1.28.0-lookalike-write-guard
- dev-fix/1.27.1-dock-offset-and-aoj2
- dev-feat/arch-001-userref
- dev-feat/arch-001-em
- dev-feat/arch-001
- dev-fix/lookalike-ids
- dev-fix/worker-access-memo
- dev-fix/1.26.1-realtime-resync
- dev-feat/1.26.0-sidebar-parity
- dev-fix/sidebar-followups
- dev-feat/sidebar-sections
- dev-feat/channels-ddd-ports
- dev-feat/mobile-mux
- dev-feat/motion-tokens
- dev-feat/overrides-1.21-page-assets-channel-event
- dev-feat/links
- dev-feat/dialog-sizes-2.29
- dev-chore/symfony-security-2026-11-04
- dev-feat/1.17.0-dock-overlay
- dev-fix/ios-dvh
- dev-feat/1.16-avatars
- dev-fix/1.15.3
- dev-feat/table-name-prefix
This package is auto-updated.
Last update: 2026-11-29 23:35:44 UTC
README
⭐ Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.
Chat Kit Bundle — floating chat dock for Symfony: direct messages, channels and a support inbox with realtime (Mercure), presence, read receipts, typing, Web Push, customizable Twig templates and theme tokens.
📋 Compatible with Symfony 7.4+ and 8.0–8.1+ — PHP 8.3+ (Symfony 8.x requires PHP 8.4+).
This bundle is FrankenPHP worker mode friendly, including worker mode with the kernel kept alive and kernel reset false (FRANKENPHP_RESET_KERNEL=false). It does not rely on the services resetter: it clears its own memos at every request, command and message boundary, so it also stays correct where services_resetter does not run (a host that bypasses it, messenger:consume --no-reset, long-running commands). See docs/FRANKENPHP-WORKER-AUDIT.md.
Features
Floating dock — list and an open conversation, host UiKit theme |
Full-page chat — works without JavaScript, in the host's UiKit layout |
Message search on a phone — UiKit page anatomy, filters folded |
- Direct messages between people your application allows to talk (you decide: same team, same project, anyone…)
- Channels: one group conversation per resource of your application (project, room, team) —
project:<uuid>-style keys from your own provider - Support tickets: a support assistant greets users with topics (incident, billing, how do I…, account, other — configurable), opens numbered tickets (
SUP-000123) with a topic-specific first reply, asks "continue or new?" after a quiet week, lists earlier tickets with Reopen; agents filter by topic, status and assignee - References in messages:
/task,/issue… commands and a#picker insert cards of your application's items, filtered by what everyone in the conversation may open and rendered per viewer (a neutral Content not visible chip otherwise) - Realtime through Mercure (FrankenPHP's built-in hub or standalone) with private per-user topics — polling fallback when it is off
- Presence (online dot, reciprocal opt-out), typing indicator and read receipts (✓✓ / "Seen by")
- Edit and delete your own messages within 15 minutes ("You deleted this message" tombstone; nobody deletes someone else's), relative times today with the exact time on hover, emoji reactions, buzz, configurable sounds, emoji picker, light Markdown (sanitised on the server)
- Support inbox page data, "report a problem" links with context (
data-nowo-chat-open), moderation events - Full-page chat (
/chat/) that also works without JavaScript; "open in a page" from every window - Message search (1.37, opt-in): database full-text search (MySQL / MariaDB FULLTEXT, PostgreSQL
tsvector) filtered in SQL to the messages each viewer may read, a no-JavaScript search page, a JSON endpoint and an optional Ctrl/⌘+K palette group throughnowo-tech/search-kit-bundle(usage) - Link previews of your own pages (checked per viewer) and an optional email digest of unread conversations
- Web Push only when the application is not open in any tab (your push stack, through one interface)
- Floating dock: windows that survive navigation and stay in step across browser tabs; full-screen sheet on phones
- Customisable markup: every piece of the UI is a Twig
<template>the TypeScript clones — override any block - UiKit page contract (REQ-UI-003,
nowo-tech/ui-kit-bundle^2.2): the full-page chat renders in the host's UiKit layout and the--nowo-chat-*tokens follow the UiKit theme (templates) - Theme tokens (
--nowo-chat-*, defaulting to the UiKit tokens, light / dark fallbacks) and Symfony UX Icons (Tabler by default, any set) - Rate limits, CSRF, IDOR-safe (foreign UUID → 404), no-store responses, retention purge, GDPR export / erasure hooks
- FrankenPHP worker mode friendly; 7 locales (en, es, fr, de, it, pt, nl)
Installation
composer require nowo-tech/chat-kit-bundle
With Symfony Flex, the recipe registers the bundle and creates config/packages/nowo_chat_kit.yaml (set user_class) and config/routes/nowo_chat_kit.yaml (prefix /chat). Without Flex, see docs/INSTALLATION.md.
// config/bundles.php return [ Nowo\FormKitBundle\NowoFormKitBundle::class => ['all' => true], // required dependency: forms are FormKit Types Nowo\ChatKitBundle\NowoChatKitBundle::class => ['all' => true], ];
Quick start
- Configure the profile (your user entity implements
Nowo\ChatKitBundle\Model\ChatUserInterface):
# config/packages/nowo_chat_kit.yaml nowo_chat_kit: profiles: default: user_class: App\Entity\User
- Import the routes, create the tables (
doctrine:migrations:diff), and implement the two required contracts —ChatDirectoryInterface(users and contacts) andChatAccessPolicyInterface(who can talk to whom):
# config/routes/nowo_chat_kit.yaml nowo_chat_kit: resource: '@NowoChatKitBundle/Resources/config/routes.php' prefix: /chat
- Render the dock once in your signed-in layout:
{{ include('@NowoChatKitBundle/dock.html.twig') }}
Full guide: docs/INSTALLATION.md · options: docs/CONFIGURATION.md · contracts, templates, theme, JS: docs/USAGE.md.
Requirements
- PHP
>=8.3 <8.7(8.3 floor: the code uses typed class constants, a PHP 8.3 feature) - Symfony 7.4, 8.0, and 8.1+
- Doctrine ORM, SecurityBundle, TwigBundle, Form, Asset, Symfony UX Icons
- Optional:
symfony/mercure-bundle(realtime), Symfony Messenger (async push), a Web Push library behindChatPushSenderInterface
Version information
| Version | PHP | Symfony | Status |
|---|---|---|---|
| 2.x | 8.3 – 8.5 | 7.4, 8.0, 8.1+ | Supported (bug and security fixes) |
| 1.x | 8.3 – 8.5 | 7.4, 8.0, 8.1+ | Security fixes (Moderate and above) until 6 months after 2.0.0 |
Demo
A Symfony 8.1 demo runs on FrankenPHP (worker mode by default) with MySQL:
make -C demo up
# Demo started at: http://localhost:8147
make -C demo/symfony8 setup-db seeds the accounts alice, bob, carol and support (password
password); sign in with two of them in two browsers. See docs/DEMO-FRANKENPHP.md.
Playwright end-to-end tests and the README screenshots (WebP under docs/images/demo/): make -C demo/symfony8 test-e2e
and make -C demo/symfony8 demo-screenshots (see docs/CONTRIBUTING.md).
Documentation
- Installation
- Configuration
- Usage
- Client API v1 (OpenAPI)
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Roadmap
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- Templates (UiKit page contract)
- Architecture
- PSR evaluation
- Coverage policy
- Demo FrankenPHP
- FrankenPHP worker audit
- Concurrency (REQ-RUNTIME-003)
- GitHub CI
- GitHub About
Tests and coverage
- Tests: PHPUnit (unit, integration, functional), Vitest (TypeScript), Playwright (demo e2e)
- PHP: 100%
- TS/JS: 99.35%
- Python: N/A
PHP line coverage target: 100% of includable src/ (gate ≥ 99%). TypeScript coverage is the minimum of statements / branches / functions / lines (REQ-TEST-009): statements, functions and lines 100%, branches 99.35% (the remaining branches are unreachable defensive fallbacks); gate ≥ 90%.
make test
make test-coverage
make test-ts
make qa
License
MIT © 2026 Héctor Franco Aceituno / Nowo.tech



