2017 © Pedro Peláez
 

cakephp-plugin accesslogs

AccessLogs plugin for CakePHP

image

fusic/accesslogs

AccessLogs plugin for CakePHP

  • Wednesday, March 29, 2017
  • by fusic
  • Repository
  • 4 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

AccessLogs plugin for CakePHP

maintainer: @gorogoroyasu, (*1)

Installation

composer require fusic/accesslogs

settings

in controller which you want to save logs,, (*2)

$this->loadComponent('AccessLogs.AccessLogs');

//in case you dont want to save some specific data,
// you have to modify how to load the component like shown below.
// (like, password, credit cart, etc...)

$this->loadComponent('AccessLogs.AccessLogs', ['blacklist' => ['password']]);

next, you have to exec the migration. please copy the code below, and exec it!, (*3)

<?php

use Migrations\AbstractMigration;

class AccessLogs extends AbstractMigration
{
    /**
     * Change Method.
     *
     * More information on this method is available here:
     * http://docs.phinx.org/en/latest/migrations.html#the-change-method
     */
    public function change()
    {
        $table = $this->table('access_logs');
        $table->addColumn('user_id',         'integer',        ['null' => true])
              ->addColumn('controller',      'string',         ['null' => true, 'limit' => 255])
              ->addColumn('action',          'string',         ['null' => true, 'limit' => 255])
              ->addColumn('passes',          'string',         ['null' => true, 'limit' => 255])
              ->addColumn('client_ip',       'string',         ['null' => true, 'limit' => 255])
              ->addColumn('url',             'string',         ['null' => true])
              ->addColumn('code',            'string',         ['null' => true, 'limit' => 255])
              ->addColumn('query',           'text',           ['null' => true])
              ->addColumn('data',            'text',           ['null' => true])
              ->addColumn('created',         'timestamp',      ['null' => false])
              ->addIndex('user_id')
              ->addIndex('controller')
              ->addIndex('action')
              ->addIndex('passes')
              ->addIndex('client_ip')
              ->addIndex('code')
              ->create();
    }
}

The Versions

29/03 2017

dev-master

9999999-dev

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

29/03 2017

0.5.1

0.5.1.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

29/03 2017

dev-fixed-a-bug

dev-fixed-a-bug

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

28/03 2017

0.5.0

0.5.0.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

23/01 2017

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

10/01 2017

0.2.1

0.2.1.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

09/01 2017

0.2.0

0.2.0.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

09/01 2017

0.1.3

0.1.3.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

09/01 2017

0.1.2

0.1.2.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

06/01 2017

0.1.1

0.1.1.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

13/12 2016

0.1.0

0.1.0.0

AccessLogs plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires