PHP code example of bbit / auditlog-bundle

1. Go to this page and download the library: Download bbit/auditlog-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bbit / auditlog-bundle example snippets

 bash
$ php composer.phar update bbit/auditlog-bundle
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\AuditLogBundle\BBITAuditLogBundle(),
    );
}
 php
$logger = $this->get('bbit_audit_log.service'); // get logger service
$logger->log("type", "channel", "logmessage to be inserted");