midnite81/auditor

Auditor package
36
Install
composer require midnite81/auditor
Latest Version:v0.0.2
PHP:>=5.5.9
License:MIT
Last Updated:Jul 28, 2016
Links: GitHub  ·  Packagist
Maintainer: midnite81

#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]);

}

Related Packages

henriale/stinter

A plan/subscription auditor for Laravel.

132 2
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609

Version History

Version Released PHP Laravel License
v0.0.2 >=5.5.9 5.*.* MIT
v0.0.1 >=5.5.9 5.*.* MIT