Download the PHP package dualmedia/es-log-bundle without Composer

On this page you can find all versions of the php package dualmedia/es-log-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 es-log-bundle

ElasticSearch Log Bundle

A Symfony Bundle for tracking changes and history of objects.

Install

Simply composer require dualmedia/es-log-bundle

Then add the bundle to your config/bundles.php file like so

Setup

Mark the entity you'd like to track progress of with #[AsLoggedEntity], you may disable creation, update and deletion logs as needed.

Mark properties you'd like to track with #[AsTrackedProperty], any changes done will trigger an update log. If an entity is updated, but no tracked properties were changed a log will not be created.

Track everything by default

You can track all properties in an entity by default by enabling $includeByDefault in #[AsLoggedEntity]. If you wish to disable a property from being tracked, simply mark it with #[AsIgnoredProperty]

To let the bundle discover your entities you must create a symfony configuration file (by default it's yaml) and add any required fields.

A sample configuration is provided below

To add the index the bundle expects simply run dualmedia:logs:create-index, to delete run dualmedia:logs:delete-index --force (an optional --if-exists flag is available)

Optionally see src/Command/CreateEsIndexCommand for current

EasyAdmin

An integration with EasyAdminBundle is available, should work... Mostly.

Add LogActionTrait to your CrudController (preferably an abstract class), so it's available in any controller or at least the ones you know that will have your field.

Then use our field like any other field with LogEntryField. Give it any name, it's not used.

A list of logs for the entity you're looking at with the detail action should show up. JavaScript is required.


All versions of es-log-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/framework-bundle Version ^6.4
symfony/cache Version ^6.4
symfony/security-bundle Version ^6.4
ruflin/elastica Version ^7.1
doctrine/orm Version ^2.15 || ^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 dualmedia/es-log-bundle contains the following files

Loading the files please wait ....