luminarix/tempest-bolt 问题修复 & 功能扩展

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

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

luminarix/tempest-bolt

Composer 安装命令:

composer require luminarix/tempest-bolt

包简介

An interactive PsySH shell and web panel for Tempest applications.

README 文档

README

Bolt

Bolt

Bolt is a PsySH-powered interactive shell and a React web panel for Tempest applications.

Installation

composer require luminarix/tempest-bolt

Console shell

./tempest bolt

Bolt starts PsySH with these variables in scope:

  • $app and $container: the Tempest container
  • $kernel: the current Tempest kernel
  • $rootPath: the project root
  • $internalStorage: Tempest's internal storage path
  • $tempestVersion: the Tempest version

Web panel

Visit /bolt in your application. The panel is a self-contained React + CodeMirror REPL — it ships its own pre-compiled assets, so no build step is required in the consuming app. Write PHP and press ⌘/Ctrl + Enter (or click Run) to evaluate it in the application context.

Application classes can be referenced by their short name — $container->get(HomeController::class) resolves to \App\HomeController. Both the web panel and the console shell alias the classes in your application's namespaces on demand.

Security

The web panel evaluates arbitrary PHP, so it is disabled outside local development by default: it is only reachable in the local environment and returns 404 everywhere else.

Publish a configuration file to change this:

./tempest install bolt

This writes bolt.config.php into your application:

use Tempest\Bolt\BoltConfig;
use Tempest\Core\Environment;

return new BoltConfig(
    enabled: true,
    environments: [Environment::LOCAL],
    // Optional gate, evaluated on every request. Return false to deny (403).
    authorize: fn (\Tempest\Http\Request $request): bool => $request->getSessionValue('user') !== null,
    persistScope: false,
);
  • enabled — master switch.
  • environments — environments in which the panel is reachable. Anything else returns 404.
  • authorize — an optional callback to gate access (e.g. to expose it to authenticated admins on staging). Return false to deny with 403.
  • persistScope — whether variables defined in the panel persist across executions within a session.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固