承接 alifuz/service-hook 相关项目开发

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

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

alifuz/service-hook

Composer 安装命令:

composer require alifuz/service-hook

包简介

Package will send request to service-hook and create hook

README 文档

README

This package provides a nice way of sending hooks to service-hook in your Laravel projects.

Follow these docs to install this package and start using hooks in your laravel projects.

Installation

You may now install Hooks into your project using the Composer package manager:

composer require aliftech/service-hook

After installing hook package, publish its assets using the vendor:publish Artisan command:

php artisan vendor:publish --provider=Alifshop\Hooks\ServiceHookProvider

Configuration

After publishing hook's assets, its primary configuration file will be located at config/hook.php.

for the specified keys, you must enter the data of the hook service, you can get them by asking the responsible person for the hook service

Concept of hooking data

Hooks are needed in order to store the history of entity changes, for example,

when an entity changes its status, or when an entity is created, and so on.

As a microservice, we have separated this service and are linking through the http

Using Hook package on your controller or on your service or anywhere u want to use

use Alifshop\Hooks\HookData;
use Alifshop\Hooks\Http\ServiceHook;

...
...
...

public function foo() {
    (new ServiceHook(new HookData(
            service: 'merchants',
            hookable_type: $model->getTable(),
            hookable_id: $model->id,
            created_from_str: 'PRM',
            created_by_id: 6,
            body: 'Создано условие',
            keyword: 'id: ' . $condition->id . ' ' . $condition->title,
            action: 'create',
            class: 'info',
            action_at: null,
            created_by_str: 'Oybek',
        )))->store();
}
      

The other specific documentation will be coming soon

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固