pushinbr / nimbus-audit
Activity and audit log of Arcano entity changes for Nimbus.
Requires
- php: ^8.4
- pushinbr/arcano: ^0.2.9
- pushinbr/nimbus: ^0.8.1
Requires (Dev)
- phpunit/phpunit: ^11.5
- symfony/console: ^7.4 || ^8.0
Suggests
- symfony/console: The audit:prune console command.
Provides
None
Conflicts
None
Replaces
None
README
Activity and audit log of Arcano entity changes for Nimbus.
Entities that use the Auditable trait get an entry for each creation, update (changed
fields only, before and after) and deletion, with the authenticated principal as the causer;
secrets are never recorded and chosen fields can be excluded or masked. Manual entries,
queries by subject, causer or log, and retention pruning complete it. Writes join the
application's transaction through a savepoint and never break it.
Start here
Install PAM first (curl -fsSL https://push-in.github.io/pam/install.sh | sh), then
add the package to a Nimbus application (Nimbus 0.8.1 or later):
pam composer require pushinbr/nimbus-audit
activity('billing')->performedOn($invoice)->withProperties(['total' => 1990])->log('Invoice sent'); $audit->forSubject($invoice);
Documentation: docs/nimbus/auditoria.md.
Evaluated packages
Checked on Packagist (search audit log, activity log) on 2026-12-02 before writing the package (downloads: total / last month). Every maintained option captures changes through a specific ORM's events (Doctrine, Eloquent, CakePHP); none works with Arcano.
| Package | Downloads | License | Latest | Decision |
|---|---|---|---|---|
damienharper/auditor |
3.8M / 187k | MIT | 5.0.0 (2026-11-27) | Not used. The core is framework-agnostic, but change capture and storage come from a provider, and the only maintained one is Doctrine's; an Arcano provider would be larger than this package, and its model is one audit table per audited entity instead of a single queryable log. |
data-dog/audit-bundle, damienharper/auditor-bundle |
1.0M, 3.8M | MIT | 1.3.2, 8.0.0 | Not usable: Symfony bundles over Doctrine ORM events. |
lorenzo/audit-stash |
0.6M | MIT | 4.2.2 (2026-01-23) | Not usable: CakePHP ORM behaviour. |
owen-it/laravel-auditing |
46.5M / 2.5M | MIT | 14.0.7 (2026-10-28) | Not usable: requires illuminate/database (Eloquent events). Reference for exclusions and masking. |
spatie/laravel-activitylog |
75.9M / 6.3M | MIT | 5.1.6 (2026-11-30) | Not usable: requires illuminate/database. Reference for the activity_log table and the activity() API. |
Arcano has no model events, so the change capture is the generic ArcanoManager::observe()
hook of the core (Nimbus 0.8.1); this package only formats and stores the entries.
Development
The package is developed in the push-in/pam
monorepo (packages/nimbus-audit); push-in/nimbus-audit is a read-only split. Its
tests share the runtime stubs and fixtures of packages/nimbus/tests:
scripts/nimbus-package-test.sh nimbus-audit
License
Apache-2.0. See LICENSE.