# auditor > auditor is a family of PHP packages for audit logs: auditor (provider-agnostic core), auditor-doctrine-provider (Doctrine ORM change tracking and audit tables) and auditor-bundle (Symfony integration and audit viewer, formerly DoctrineAuditBundle). Symfony applications install damienharper/auditor-bundle; Doctrine ORM applications without Symfony install damienharper/auditor-doctrine-provider; damienharper/auditor alone is the core. These docs describe the latest line of each package; older lines are listed on the site. ## auditor (core) - [Introduction](https://damienharper.github.io/auditor-docs/auditor.md): Overview of auditor, a provider-based PHP audit log library: features, architecture and data flow, available providers, supported databases and ver... - [Coming from DoctrineAuditBundle](https://damienharper.github.io/auditor-docs/auditor/getting-started/coming-from-doctrine-audit-bundle.md): Map the former DoctrineAuditBundle (dh_doctrine_audit, DH\DoctrineAuditBundle) to auditor and auditor-bundle: packages, namespaces, configuration k... - [Installation](https://damienharper.github.io/auditor-docs/auditor/getting-started/installation.md): Install the auditor PHP audit log library with Composer, check the PHP and Symfony requirements, and add the Doctrine ORM provider or the Symfony b... - [Quick Start Guide](https://damienharper.github.io/auditor-docs/auditor/getting-started/quick-start.md): Set up the auditor core in plain PHP: create the Configuration and the Auditor, register a provider and mark entities with #[Auditable] and related... - [Which packages do I need?](https://damienharper.github.io/auditor-docs/auditor/getting-started/which-packages.md): Choose between auditor, auditor-doctrine-provider and auditor-bundle, and pick the versions that work together for your PHP or Symfony application. - [API Reference](https://damienharper.github.io/auditor-docs/auditor/api.md): API reference of the auditor core: Auditor, Configuration, Entry, attributes, masking, history classes, LifecycleEvent, provider interfaces and exc... - [Console Commands](https://damienharper.github.io/auditor-docs/auditor/commands.md): Reference of the audit console commands shipped by auditor-doctrine-provider: schema update and migration, cleaning, snapshots, export and root ind... - [Common mistakes](https://damienharper.github.io/auditor-docs/auditor/common-mistakes.md): Frequent mistakes when using auditor 5.x: where the Doctrine provider lives, decoding audit entries, LifecycleEvent payload keys, renamed fields an... - [Blame Context](https://damienharper.github.io/auditor-docs/auditor/configuration/blame-context.md): Record how a change was made (an import, a console command, a Messenger message) with BlameContext and BlameContextStack, written in the via key of... - [Configuration Reference](https://damienharper.github.io/auditor-docs/auditor/configuration.md): Reference of the auditor Configuration options (enabled, timezone, user provider, security provider, role checker, extra data provider) and how to ... - [Role Checker Configuration](https://damienharper.github.io/auditor-docs/auditor/configuration/role-checker.md): Restrict who can read audit log entries with a role checker callable, combined with the #[Security] attribute, and handle the AccessDeniedException... - [Security Provider Configuration](https://damienharper.github.io/auditor-docs/auditor/configuration/security-provider.md): Record the client IP address and firewall name of each audit entry with a security provider callable that returns a two-value list, in Symfony or p... - [User Provider Configuration](https://damienharper.github.io/auditor-docs/auditor/configuration/user-provider.md): Record who made each change with a user provider callable returning a User or a custom UserInterface, and read the blamed user back from audit entr... - [Extra Data](https://damienharper.github.io/auditor-docs/auditor/extra-data.md): Attach extra data to audit log entries with the extra_data_provider callable or a LifecycleEvent listener, then read it back as a decoded array fro... - [Histories](https://damienharper.github.io/auditor-docs/auditor/history.md): Build business histories from audit log entries with #[AuditRoot], HistoryGrouper, ChangeExtractor, BlameOrigin and label resolvers, across audited... - [Building a Custom Provider](https://damienharper.github.io/auditor-docs/auditor/providers/custom-provider.md): Write a custom auditor provider with ProviderInterface, AbstractProvider and auditing or storage services, read the LifecycleEvent payload, and pac... - [DoctrineProvider](https://damienharper.github.io/auditor-docs/auditor/providers/doctrine.md): Doctrine ORM support for auditor lives in the separate auditor-doctrine-provider package since 5.0: what it supports and where its documentation is. - [Querying Audits](https://damienharper.github.io/auditor-docs/auditor/querying.md): Querying audit log entries is provider-specific: the readers, queries and filters providers offer, with pointers to the Doctrine ORM provider reader. - [Upgrade Guide](https://damienharper.github.io/auditor-docs/auditor/upgrade.md): Choose the upgrade guide between auditor major versions, check which versions are supported with which PHP and Symfony releases, and update with Co... - [Upgrading to 3.x from 2.x](https://damienharper.github.io/auditor-docs/auditor/upgrade/v3.md): Upgrade auditor from 2.x to 3.x: PHP 8.2 and Symfony 5.4 requirements, Doctrine annotations replaced by PHP 8 attributes, typed and read-only prope... - [Upgrading to 4.x from 3.x](https://damienharper.github.io/auditor-docs/auditor/upgrade/v4.md): Upgrade auditor from 3.x to 4.x: PHP 8.4 requirements, attribute namespace changes, Entry property hooks, opt-in UTF-8 conversion and the extra_dat... - [Upgrade from 4.x to 5.0](https://damienharper.github.io/auditor-docs/auditor/upgrade/v5.md): Upgrade auditor from 4.x to 5.0: install auditor-doctrine-provider, migrate audit tables to schema v2, and adapt to the new Entry and LifecycleEven... ## auditor-doctrine-provider - [Introduction](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider.md): Doctrine ORM provider of the auditor library: records inserts, updates, deletes and many-to-many changes of entities in audit tables, in the flush ... - [Installation](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/getting-started/installation.md): Install auditor-doctrine-provider with Composer: PHP, Doctrine DBAL/ORM and auditor requirements of the 2.x and 1.x lines, and when to use auditor-... - [Quick Start Guide](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/getting-started/quick-start.md): Set up audit logging of Doctrine ORM entities without Symfony: Auditor, DoctrineProvider, DBAL middleware, auditable entities, audit tables and the... - [Extra Data](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/extra-data.md): Attach custom JSON to Doctrine audit entries in extra_data, with an extra_data_provider or a LifecycleEvent listener, then filter and index it with... - [Attributes Reference](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/attributes.md): Reference of the #[Auditable], #[Ignore], #[Mask], #[Security], #[DiffLabel] and #[AuditRoot] PHP attributes that configure the auditing of Doctrin... - [DoctrineProvider Configuration](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/configuration.md): All DoctrineProvider options: audit table prefix and suffix, ignored and audited columns, entity options, batch INSERT, compression, mask secret, s... - [DoctrineProvider](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine.md): Overview of the DoctrineProvider: what it tracks on flush, the audit table columns and action types, its architecture, and limitations such as DQL ... - [Multi-Database Setup](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/multi-database.md): Store Doctrine audit entries in a separate database with one or more StorageServices and a storage_mapper, and how rollbacks are handled across con... - [Performance](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/performance.md): Measured cost of auditing a Doctrine flush in 1.x and 2.0, with and without batch INSERT, on SQLite, MySQL and PostgreSQL, and duration of the v2 m... - [Schema Management](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/schema.md): Audit table structure, diffs format and writing audit rows yourself; create and update audit tables with SchemaManager and the audit:schema:update,... - [Services](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/providers/doctrine/services.md): Register AuditingService and StorageService on the DoctrineProvider, attach its Doctrine listeners yourself, and reset it in long-running Messenger... - [Entry Reference](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/querying/entry.md): Reference of the Entry model returned by audit queries: virtual properties, blame fields, getDiffs() on schema v1 and v2 diffs, snapshots and timez... - [Filters Reference](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/querying/filters.md): Reference of the audit query filters: SimpleFilter, DateRangeFilter, RangeFilter, NullFilter, JsonFilter, ChangedFieldFilter, BlameOriginFilter and... - [Histories](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/querying/history.md): Read the history of a business object across audit tables with #[AuditRoot], the audit_root index and createRootQuery(), and the last change of eac... - [Querying Audits](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/querying.md): Query Doctrine audit entries with the Reader and Query APIs: createQuery() options, pagination by entries or by transactions, entries of a transact... - [Upgrade Guide](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/upgrade.md): Upgrade guides between major versions of auditor-doctrine-provider, the support status of the 1.x and 2.x lines, and the general upgrade procedure. - [Upgrading to 2.0](https://damienharper.github.io/auditor-docs/auditor-doctrine-provider/upgrade/v2.md): Upgrade auditor-doctrine-provider from 1.x to 2.0: back up, migrate audit tables to schema v2 with audit:schema:migrate or Doctrine Migrations, the... ## auditor-bundle - [Introduction](https://damienharper.github.io/auditor-docs/auditor-bundle.md): Overview of auditor-bundle, the Symfony bundle that records Doctrine ORM entity changes in audit tables, with its features and version compatibility. - [Installation](https://damienharper.github.io/auditor-docs/auditor-bundle/getting-started/installation.md): Install auditor-bundle in a Symfony application, with its requirements, Composer install, bundle and route registration, audit tables and assets. - [Entity Attributes](https://damienharper.github.io/auditor-docs/auditor-bundle/configuration/attributes.md): Configure audited Doctrine ORM entities with the #[Auditable], #[Ignore], #[Mask], #[Security], #[DiffLabel] and #[AuditRoot] attributes, combined ... - [Configuration Reference](https://damienharper.github.io/auditor-docs/auditor-bundle/configuration.md): Reference of every dh_auditor option in Symfony, from global providers to Doctrine ORM provider options, entities, viewer, retention and logging. - [Storage Configuration](https://damienharper.github.io/auditor-docs/auditor-bundle/configuration/storage.md): Configure where audit entries are stored: table naming, a separate audit database with several entity managers, storage mapper and schema updates. - [Blame Context](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/blame-context.md): Record how a change was made (an import, a console command, a Messenger message) in audit entries with BlameContextStack and the Messenger middleware. - [Custom Audit Provider](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/custom-provider.md): Register a custom auditor provider in a Symfony application with the dh_auditor.provider service tag, alone or next to the Doctrine ORM provider. - [Diff Label Resolvers](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/diff-label-resolvers.md): Store readable labels next to raw values in audit diffs with #[DiffLabel] and DiffLabelResolverInterface services, and show them in the audit log v... - [Extra Data](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/extra-data.md): Attach extra data to audit entries in Symfony with the extra_data_provider option or a LifecycleEvent listener, then read and filter it with JsonFi... - [Histories](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/histories.md): Show the history of a business object across entities: audit roots, root queries, field labels, phrases, Twig functions and the History Twig compon... - [Customization](https://damienharper.github.io/auditor-docs/auditor-bundle/customization.md): Overview of the customizable services of auditor-bundle: user provider, security provider, role checker, console user tracking and other extension ... - [Role Checker](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/role-checker.md): Control who can view the audit logs of each entity in the audit log viewer and export with roles.view, #[Security] or a custom RoleCheckerInterface... - [Security Provider](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/security-provider.md): Customize how the client IP address and firewall name are recorded in audit entries with a SecurityProviderInterface service, for example behind a ... - [User Provider](https://damienharper.github.io/auditor-docs/auditor-bundle/customization/user-provider.md): Customize how the user who made a change is identified in audit entries with a UserProviderInterface service, and how console commands are blamed. - [Upgrade Guide](https://damienharper.github.io/auditor-docs/auditor-bundle/upgrade.md): Find the upgrade guide between auditor-bundle major versions, the supported versions and the audit table schema commands to run after an upgrade. - [Upgrading to 7.0](https://damienharper.github.io/auditor-docs/auditor-bundle/upgrade/v7.md): Upgrade auditor-bundle from 6.x to 7.0: new PHP, Symfony, Doctrine and auditor requirements, removed classes, renamed viewer routes and other break... - [Upgrading to 8.0](https://damienharper.github.io/auditor-docs/auditor-bundle/upgrade/v8.md): Upgrade auditor-bundle from 7.x to 8.0: auditor 5 and auditor-doctrine-provider 2, migration of audit tables to schema v2, breaking changes and new... - [Audit Viewer](https://damienharper.github.io/auditor-docs/auditor-bundle/viewer.md): Enable, secure and customize the audit log viewer of auditor-bundle: routes, pages, export, activity graph, access control, URL generation and temp...