Download the PHP package virtualorz/actionlog without Composer

On this page you can find all versions of the php package virtualorz/actionlog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package actionlog

Usage

Use for Laravel website to log CRUD befor after value

Install

composer require virtualorz/actionLog

Config

edit config/app.php

'providers' => [
    ...
    Virtualorz\ActionLog\ActionLogServiceProvider::class
]

'aliases' => [
    ...
    'ActionLog' => Virtualorz\ActionLog\Facades\ActionLog::class,
]

Publish data

php artisan vendor:publish --provider="Virtualorz\ActionLog\ActionLogServiceProvider"

Run Migration

php artisan migrate --path=/vendor/virtualorz/actionlog/src/migrations

Edit Config

edit config/actionLog_logAction ,
for three type to the name you want

Method

pushBefore($key, $value)
add before value to object manual, $key for table name, $value for row value
pushAfter($key, $value)
add after value to object manual, $key for table name, $value for row value
save($page,$action,$remark,$object = null,$target_id = null)
save before after value to database,
$page for page name,
$action for action type, the key of log_action,
$remark for remark text,
$object = null for model object , if null will get the before and after value add manual
$target_id = null for modify target id, if null will get the primary if in model object
save the model object before after value to database
logList($page=15)
return the log list result paginate by $page
logContent($id)
return the content HTML of log id=$id,
you can use {!! $RESULT_HTML !!} in blade to show the log content
$RESULT_HTML for logContent() method result

Example for manual add value

ActionLog::pushBefore('system_permission', system_permission::where('member_id', $request->get('id'))->get());
...
//do some thing
...
ActionLog::pushAfter('system_permission', system_permission::where('member_id', $request->get('id'))->get());

ActionLog::save(Route::getCurrentRoute()->action['parent'],0,'remark text',null,$request->get('id'));

Example for save model value

ActionLog::save(Route::getCurrentRoute()->action['parent'],2,'remark text',$system_permission);

中文版本文件

ActionLog : 紀錄網站每筆資料操作記錄


All versions of actionlog with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package virtualorz/actionlog contains the following files

Loading the files please wait ....