PHP code example of appaydin / pd-activity

1. Go to this page and download the library: Download appaydin/pd-activity 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/ */

    

appaydin / pd-activity example snippets



// config/bundles.php

return [
    //...
    Pd\ActivityBundle\PdActivityBundle::class => ['all' => true]
];

# src/Controller/LogViewerController.php

use Pd\ActivityBundle\Repository\ActivityLogRepository;
use Pd\ActivityBundle\Repository\MailLogRepository;

public function view(ActivityLogRepository $activityLog, MailLogRepository $mailLog) {
    $activityLog->getUserLogs($this->getUser());
    $mailLog->findAll();
    ...
}