klxf/flarum-maintenance 问题修复 & 功能扩展

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

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

klxf/flarum-maintenance

最新稳定版本:1.1.0

Composer 安装命令:

composer require klxf/flarum-maintenance

包简介

Highly customizable maintenance mode

关键字:

README 文档

README

License Latest Stable Version Total Downloads

A Flarum extension. Highly customizable maintenance mode.

Features

  • Enable/disable maintenance mode.
  • Customizable maintenance page with HTML support.
  • Only administrators can access the forum when maintenance mode is enabled.
  • PHP commands to enable/disable maintenance mode.

Installation

Install with composer:

composer require klxf/flarum-maintenance:"*"

Updating

composer update klxf/flarum-maintenance:"*"
php flarum migrate
php flarum cache:clear

Placeholders

You can use the following placeholders in the maintenance page:

  • $forumStyle - The forum's CSS styles.
  • $settings - The forum's settings.
    • Example: $settings->get('forum_title') for the forum title.
  • $url - Flarum URL Generator.
    • Example: $url->to('forum')->base() for the forum base URL.

Use Developer Tokens Bypass Maintenance Mode

If you enable maintenance mode, you can still access the forum using developer tokens.

Enabling the "Enable Token Authentication" setting allows you to access the forum using developer tokens even when maintenance mode is enabled.

You can authenticate and login to the forum using the following URL:

{$forum_base_url}/maintenance/auth/{$token}

Commands

Toggle Maintenance Mode

You can toggle maintenance mode using the following command:

php flarum maintenanceMode:toggle

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固