amol/reactiveci4 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amol/reactiveci4

最新稳定版本:v1.0.2

Composer 安装命令:

composer require amol/reactiveci4

包简介

Activity logger for Codeigniter 4

README 文档

README

Latest Version on Packagist

The amol/reactiveci4 helps to log activities of user in your website easily. It stores all activities in database table activity. It helps to boost your work speed.

Features

  1. Easy setup.
  2. Use Codeigniter Models.
  3. Easy to use.

Basic Example

helper('reactive');
reactive($user, "You updated the profile");

Advanced Example using Class

use Amol\ReactiveCi4\Reactive;

$userModel = model('App\Models\UserModel');
$user = $userModel->find(1);
$properties = [
    "ip" => "127.0.0.1"
];
$label = "profile review"

$record = new Reactive();
$record->log($user, "admin changed user's profile photo", $admin, $properties, $label);

Installation

you can install the package via composer.

composer require amol/reactiveci4

After installing. run spark command

php spark reactive:setup

it will create Reactive config and Activity model file. it also migrate activity table.

Documentation and Examples

Class Reactive

has function log

public function log(object $subject, string $text, object $causer=null,array $properties=[], string $label=null ): id|false

Helper

It also provides helper

function reactive(object $subject, string $text, object $causer=null,array $properties=[], string $label=null )

return id of activity instance or false on failure.

Activity Model

You can use model to retrieve data from activity table and also do crud operations with it. You can also customize the model.

Label

Label used to categories the record in different groups. You can change its default value using config file.

Full documentation and Examples

Coming soon

Bugs & Issues

If you find any bugs. Dont hesitate to create a issue.

Contributing

Please see CONTRIBUTING for details.

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固