Skip to content
Proyek

Tentang

The missing audit log library

Data dan analisis

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

auditor-bundle Tweet

Latest Stable Version Latest Unstable Version auditor-bundle 8.x CI License Scrutinizer Code Quality codecov Total Downloads Monthly Downloads Daily Downloads

auditor-bundle, formerly known as DoctrineAuditBundle integrates auditor library into any Symfony 8.1+ application.

It records every insert, update, removal and many-to-many change of your Doctrine ORM entities in audit tables, with who made the change, when and how, and ships a web viewer to browse the history. It pulls in auditor (the core) and auditor-doctrine-provider (the Doctrine ORM provider).

Quick start

composer require damienharper/auditor-bundle
# config/packages/dh_auditor.yaml
dh_auditor:
    providers:
        doctrine:
            entities:
                App\Entity\Post: ~

Then create the audit tables (bin/console doctrine:migrations:diff and doctrine:migrations:migrate). See the installation guide for the viewer routes and the full configuration.

Using an AI coding agent?

This package ships an Agent Skill in skills/auditor-bundle/ (vendor/damienharper/auditor-bundle/skills/ once installed) describing the bundle. The copy in vendor/ matches your installed version; the marketplace serves the current major. With Claude Code:

/plugin marketplace add DamienHarper/auditor
/plugin install auditor-bundle@auditor

The documentation is also available as llms.txt.

Demo

You can try out this bundle by cloning its companion demo app. Follow instructions at auditor-bundle-demo.

Official Documentation

auditor-bundle official documentation can be found here.

Version Information

Version Status Requirements Badges
8.x Active development :rocket: PHP >= 8.4, Symfony >= 8.1, Doctrine DBAL >= 4.6, Doctrine ORM >= 3.7 auditor-bundle 8.x CI
Scrutinizer Code Quality
codecov
7.x Bug and security fixes PHP >= 8.4, Symfony >= 8.1, Doctrine DBAL >= 4.3, Doctrine ORM >= 3.2 auditor-bundle 7.x CI
Scrutinizer Code Quality
codecov
6.x End of life PHP >= 8.2, Symfony >= 5.4 Scrutinizer Code Quality
codecov
5.x End of life PHP >= 7.4, Symfony >= 4.4
4.x End of life PHP >= 7.2, Symfony >= 3.4

Changelog is available in the releases.

Upgrading

See UPGRADE-8.0.md for upgrade instructions from 7.x to 8.0 (the audit tables must be migrated), and UPGRADE-7.0.md from 6.x to 7.0.

Usage

Once installed and configured, any database change affecting audited entities will be logged to audit logs automatically. Also, running schema update or similar will automatically setup audit logs for every new auditable entity.

Contributing

auditor-bundle is an open source project. Contributions made by the community are welcome. Send me your ideas, code reviews, pull requests and feature requests to help us improve this project.

Do not forget to provide unit tests when contributing to this project. To do so, follow instructions in this dedicated README

Credits

License

auditor-bundle is free to use and is licensed under the MIT license

Jelajahi proyek terkait

Memuat…