Download the PHP package nowo-tech/audit-kit-bundle without Composer
On this page you can find all versions of the php package nowo-tech/audit-kit-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nowo-tech/audit-kit-bundle
More information about nowo-tech/audit-kit-bundle
Files in nowo-tech/audit-kit-bundle
Package audit-kit-bundle
Short Description Symfony + Doctrine bundle for automatic created/updated timestamps and blame fields on opt-in entities.
License MIT
Homepage https://github.com/nowo-tech/AuditKitBundle
Informations about the package audit-kit-bundle
Audit Kit Bundle
⭐ Found this useful? Install from Packagist and give the repo a star on GitHub.
| Symfony + Doctrine bundle for automatic auditing fields on any opt-in entity: | Field | Set on |
|---|---|---|
createdAt / updatedAt |
prePersist + preUpdate (timestamps only on update) |
|
createdBy / updatedBy |
When an authenticated user is present (nullable in CLI) |
Complements nowo-tech/user-kit-bundle (account state / presence) and nowo-tech/auth-kit-bundle (auth flows).
This bundle is FrankenPHP worker mode friendly, including the strict case where the kernel is not reset between requests. See docs/FRANKENPHP-WORKER-AUDIT.md.
|
Action log timeline — actor and subject avatars from one resolver call |
Audit fields — blame and timestamps filled on persist |
Features
- Optional traits:
TimestampableTrait,BlameableTrait,AuditableTrait - Public opaque UUID:
PublicUuidInterface+PublicUuidTrait, filled onprePersistbyPublicUuidListener(UUID v7) - Append-only
CreatedAtImmutableTrait(non-nullcreatedAt) SqlLikehelper: escapeLIKEinput with anESCAPE '\'clause that behaves the same on MySQL and SQLiteSqlFulltexthelper: DQL text search with MySQL / MariaDBFULLTEXT(MATCH … AGAINSTboolean prefix query, InnoDB token rules) and an escapedLIKEfallback elsewhere, plus result snippetsKeysetDeletehelper: delete matching rows in short primary-key batches (portable DBAL, keyset over the id)- Doctrine entity listener (
prePersist/preUpdate) - Action log (opt-in):
AbstractActionLogmapped superclass,ActionLogRecorder, filterable repository with keyset purge,nowo:audit-kit:action-log:purgeand an optional Twig timeline — maps onto existing tables with no migration - Named profiles — separate field mapping and flags per user entity (
User,Admin, …) with O(1) class resolution - Configurable property names and
user_class - Per-entity opt-out via
#[Auditable(enabled: false)] - Guest / CLI safe — blame fields stay
nullwithout errors
Quick start
The legacy flat layout (user_class at root) remains supported. See Configuration.
Requirements
- PHP 8.2+
- Symfony 7.4 | 8.x
- Doctrine ORM 2.15+ | 3.x
Demo
Each demo persists entities with automatic audit columns (see demo/symfony8/src/Entity/Article.php and LegacyRecord.php for audited vs opt-out). See docs/DEMO-FRANKENPHP.md for FrankenPHP setup (including worker mode for production).
Development
Documentation
- Installation
- Configuration
- action log flush mode)
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Concurrency (REQ-RUNTIME-003)
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- GitHub Actions CI requirements
- PSR evaluation (REQ-CS-007)
- Demo with FrankenPHP
- Product spec
- Code inventory
- Doctrine helpers spec
- Action log spec
- Keyset delete spec
- Full-text search spec
Tests and coverage
- Tests: PHPUnit (unit + integration)
- PHP: 100%
- TS/JS: N/A
- Python: N/A
Compatibility: PHP 8.2+ · Symfony 7.4 / 8.0 / 8.1 (CI matrix).
License
MIT — see LICENSE.
Package
- Composer:
nowo-tech/audit-kit-bundle - Config root:
nowo_audit_kit
All versions of audit-kit-bundle with dependencies
doctrine/doctrine-bundle Version ^2.10 || ^3.0
doctrine/orm Version ^2.15 || ^3.0
nowo-tech/correlation-contract Version ^0.1
nowo-tech/migrations-kit-contracts Version ^1.0
nowo-tech/transaction-contract Version ^1.0
nowo-tech/transaction-doctrine Version ^1.9
psr/clock Version ^1.0
psr/event-dispatcher Version ^1.0
psr/log Version ^1 || ^2 || ^3
symfony/config Version ^7.4 || ^8.0
symfony/console Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/deprecation-contracts Version ^2.5 || ^3.0
symfony/framework-bundle Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/property-access Version ^7.4 || ^8.0
symfony/security-core Version ^7.4 || ^8.0
symfony/uid Version ^7.4 || ^8.0
twig/extra-bundle Version ^3.12
twig/string-extra Version ^3.12