承接 vanguardapp/activity-log 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vanguardapp/activity-log

Composer 安装命令:

composer require vanguardapp/activity-log

包简介

User activity log plugin for Vanguard.

README 文档

README

User Activity Log plugin for Vanguard - Advanced PHP Login and User Management system.

This plugin was originally part of the Vanguard itself, but it has been extracted as a separate plugin starting from Vanguard 4.

Installation

This plugin requires Vanguard 5.0.0 or greater.

Installation via Composer

To install the plugin first you will need to pull it via composer by running the following command

composer require vanguardapp/activity-log

The composer will install the plugin for you as well as it's dependencies.

The next step is to register the plugin by adding the \Vanguard\UserActivity\UserActivity::class to the list of Vanguard plugins inside the VanguardServiceProvider:

protected function plugins()
    {
        return [
            //...
            \Vanguard\UserActivity\UserActivity::class,
        ];
    }

As soon as your plugin is registered, you should publish the plugins migrations by running the following command:

php artisan vendor:publish --provider="Vanguard\UserActivity\UserActivity"  --tag="migrations"

And, as the last step of the installation, you will need to run the following commands to make all the necessary database modifications:

php artisan migrate
php artisan db:seed --class="ActivityPermissionsSeeder"

At this point the plugin will be fully installed and ready to go. It is configured to listen for most of the events that are coming from Vanguard and to put the into the activity log.

Manual Installation

If you plan to make the modifications to the plugin and customize it to fit your needs, it's much easier if you add it to your project manually.

To do so, you will need to download the ZIP archive from GitHub by clicking the green "Clone or download" button and then choosing the "Download ZIP" option from the dropdown.

Once you have the ZIP file on your computer, extract it to the plugins/ActivityLog folder (you will need to create this folder since it probably won't be present in your Vanguard installation).

Next step is to update your main composer.json file located in Vanguard's root directory and add the following object to the repositories array:

{
    "type": "path",
    "url": "./plugins/ActivityLog"
}

This will tell the composer that your plugin is located in /plugins/ActivityLog directory and that it should be installed from there.

Now, add the following to the composer's require section

"vanguardapp/activity-log": "*"

And run composer update.

Composer will now install the plugin from your local directory instead of pulling it from GitHub, which means that you will be able to make the changes to the plugin itself and customize it to fit your needs.

The rest of the process is the same as when the plugin is installed by directly fetching it via composer from the GitHub repository, so you will need to do all the same steps as above, which in short involves updating the VanguardServiceProvider and running the commands to publish plugin's static assets and to update the database.

Dashboard Widgets

A plugin provides user activity dashboard widget that is visible for all users with a role User.

To activate the widget add the Vanguard\UserActivity\Widgets\ActivityWidget::class to the widgets array in VanguardServiceProvider:

protected function widgets()
{
    return [
       //...
       \Vanguard\UserActivity\Widgets\ActivityWidget::class,
    ];
}

License

This plugin is an open-source software licensed under the MIT license.

vanguardapp/activity-log 适用场景与选型建议

vanguardapp/activity-log 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 84.96k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 09 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「activity log」 「user activity」 「vanguard」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 vanguardapp/activity-log 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vanguardapp/activity-log 我们能提供哪些服务?
定制开发 / 二次开发

基于 vanguardapp/activity-log 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 84.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 30
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-07