Download the PHP package kricha/doctrine-audit-bundle without Composer

On this page you can find all versions of the php package kricha/doctrine-audit-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package doctrine-audit-bundle

DoctrineAuditBundle

Inspired by

This bundle creates audit logs for all Doctrine ORM database related changes:

Basically you can track any change from these log entries if they were managed through standard ORM operations.

NOTE: audit cannot track DQL or direct SQL updates or delete statement executions.

This bundle is inspired by damienharper/doctrine-audit-bundle and simplethings/entity-audit-bundle

Installation

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

Configuration

Audited entities and properties

By default, DoctrineAuditBundle won't audit any entity, you have to configure which entities have to be audited.

All Order and User properties will be audited. Though it is possible to exclude some of them from the audit process.

It is also possible to specify properties that are globally ignored by the audit process.

Audit tables naming format

Audit table names are composed of a prefix, the audited table name and a suffix. By default, the prefix is empty and the suffix is _audit. Though, they can be customized.

Creating audit tables

Open a command console, enter your project directory and execute the following command to review the new audit tables in the update schema queue.

Notice: DoctrineAuditBundle currently only works with a DBAL Connection and EntityManager named "default".

Using Doctrine Migrations Bundle

Using Doctrine Schema

Audit viewer

Add the following routes to the routing configuration to enable the included audits viewer.

It is possible to filter results by event type by calling AuditReader::filterBy method before getting the results.

Available constants are: ``

Custom user provider

If you don't use Symfony's TokenStorage to save your current user, you can configure a custom username for changes.

``

Usage

audit entities will be mapped automatically if you run schema update or similar. And all the database changes will be reflected in the audit logs afterwards.

FAQ:

I've added an new entity in the config file but it's not audited.

First check its namespace, then clear your cache and re-run doctrine:schema:update or doctrine:migrations:migrate.

Contributing

DoctrineAuditBundle is an open source project. Contributions made by the community are welcome. Send us 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.

License

DoctrineAuditBundle is free to use and is licensed under the MIT license


All versions of doctrine-audit-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8
doctrine/orm Version ^2.9
babdev/pagerfanta-bundle Version ^3.0
symfony/framework-bundle Version ^5.0|^6.0
twig/twig Version ^3.3
pagerfanta/doctrine-dbal-adapter Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kricha/doctrine-audit-bundle contains the following files

Loading the files please wait ....