kg-bot/hookbox-ui-core 问题修复 & 功能扩展

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

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

kg-bot/hookbox-ui-core

最新稳定版本:v1.0.0

Composer 安装命令:

composer require kg-bot/hookbox-ui-core

包简介

Backend-only UI core for Hookbox inbox and replay surfaces.

README 文档

README

Hookbox UI Core is the shared backend-only package for Hookbox inbox and replay experiences. It is JSON-first by default through the responder contract and does not render framework-specific UI.

Support

Hookbox UI Core supports Laravel 12 and 13 on PHP 8.2+.

What It Provides

Laravel apps that want a Hookbox inbox still need the same backend concerns over and over: request parsing, authorization, pagination defaults, normalized page data, and safe replay orchestration. Hookbox UI Core packages those concerns into a headless backend layer so Blade, Livewire, Filament, Vue, or other adapters can share one stable UI-core surface instead of rebuilding it per stack.

The package currently provides:

  • route registration for inbox, message detail, and replay endpoints
  • inbox query parsing and pagination defaults
  • authorization checks for inbox access, replay, and redacted payload visibility
  • normalized inbox and message-detail view models
  • JSON responses by default via Hookbox\UiCore\Contracts\HookboxUiResponder
  • replay orchestration that defaults to dry-run behavior

Dependencies

hookbox-ui-core depends on kg-bot/hookbox for the stable read and replay contract. UI Core sits on top of that package and does not read Hookbox internal models, receipts, jobs, queued handlers, or other implementation details directly.

Supported integration surface:

  • Hookbox\Repositories\MessageRepository
  • Hookbox\Repositories\SourceRepository
  • Hookbox\ReplayService
  • Hookbox\ReplayOptions
  • Hookbox\Repositories\MessageFilters
  • Hookbox\Repositories\MetricsRange
  • Hookbox\Views\WebhookMessageView
  • Hookbox\Views\WebhookAttemptView
  • Hookbox\Views\SourceView
  • Hookbox\Views\MetricsSummary
  • Hookbox\Views\SourceCounters

Installation

This package depends on the published kg-bot/hookbox Composer package.

To install dependencies for local development in this repository, run:

composer install

For a release install in a consuming Laravel application, require UI Core. Composer will install its kg-bot/hookbox dependency automatically:

composer require kg-bot/hookbox-ui-core

If you need to override package defaults, publish the config with:

php artisan vendor:publish --tag=hookbox-ui-config

Additional installation details are documented in docs/installation.md.

Default Routes

When hookbox-ui.enabled is true, the package registers these routes under hookbox-ui.route_prefix, which defaults to hookbox:

  • GET /hookbox/messages
  • GET /hookbox/messages/{message}
  • POST /hookbox/messages/{message}/replay

Default config keys:

  • enabled
  • route_prefix
  • middleware
  • pagination.per_page
  • replay.allow_live

Authorization

The package expects these Laravel abilities to exist:

  • viewHookboxInbox
  • replayHookboxMessage
  • viewRedactedPayload

viewHookboxInbox gates the inbox and message detail endpoints. replayHookboxMessage gates replay requests. viewRedactedPayload is exposed in the JSON page payload so adapters can decide whether to show redacted content affordances.

Replay Safety Defaults

Replay stays dry-run by default.

  • Message details expose defaultsToDryRun: true
  • The replay endpoint only performs a live replay when the request explicitly sends live_replay=true
  • Live replay still requires hookbox-ui.replay.allow_live to be enabled

Out Of Scope

This repository is intentionally backend-only. It does not render Blade, Livewire, Inertia, Vue, Filament, or any other framework-specific interface.

Adapter packages are intentionally out of scope for this repository. Future UI packages should consume UI Core rather than reimplementing Hookbox inbox and replay business rules.

Additional Docs

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固