midnite81 / auditor by midnite81

Auditor package
33
0
2
Package Data
Maintainer Username: midnite81
Maintainer Contact: webdev@centralblue.co.uk (Simon Rogers)
Package Create Date: 2016-07-12
Package Last Update: 2016-07-28
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 03:03:00
Package Statistics
Total Downloads: 33
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

#Auditor Latest Stable Version Total Downloads Latest Unstable Version License

Auditor is a PHP package to retrieve audit json data from Laravel 5 and present it in table format.

Please note this is a work in progress.

#Installation

This package requires PHP 5.6+, and includes a Laravel 5 Service Provider.

To install through composer include the package in your composer.json.

"midnite81/auditor": "0.0.*"

Run composer install or composer update to download the dependencies or you can run composer require midnite81/auditor.

##Laravel 5 Integration

To use the package with Laravel 5 firstly add the Auditor service provider to the list of service providers in app/config/app.php.

'providers' => [

  Midnite81\Auditor\AuditorServiceProvider::class
          
];

#Basic Usage

Please note this is a work in progress package. Documentation is not yet complete.

use Midnite81\Auditor\Contracts\Auditor;

public function index(Auditor $auditor)
{

    $data = MyModel::orderBy('created_at', desc')->get(['data']);

    $auditTable = $auditor->setData($data)->sort(['UserId', 'Priorty'])->render();

    return view('some.view', ['auditTable' => $auditTable]);

}