studiometa/foehn-installer 问题修复 & 功能扩展

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

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

studiometa/foehn-installer

最新稳定版本:0.4.1

Composer 安装命令:

composer require studiometa/foehn-installer

包简介

Composer plugin that generates the WordPress web root, symlinks, and wp-config.php for Foehn projects.

README 文档

README

Composer plugin that generates the WordPress web root for Føhn projects.

Note This package is part of the Føhn Framework monorepo. Please report issues and submit pull requests in the main repository.

What it does

On composer install and composer update, this plugin automatically:

  1. Creates the web/ directory structure (document root)
  2. Generates web/wp-config.php (loads config from config/ directory)
  3. Generates web/index.php (WordPress front controller)
  4. Symlinks theme/web/wp-content/themes/{name}
  5. Symlinks mu-plugins/web/wp-content/mu-plugins/_custom
  6. Generates the mu-plugin loader

Installation

composer require studiometa/foehn-installer

Configuration

Configure via extra.foehn in your project's composer.json:

{
  "extra": {
    "foehn": {
      "web-dir": "web",
      "wp-dir": "wp",
      "theme-dir": "theme",
      "theme-name": "my-theme",
      "mu-plugins-dir": "mu-plugins",
      "config-dir": "config"
    }
  }
}

All options are optional and have sensible defaults.

Option Default Description
web-dir web Web root directory (document root)
wp-dir wp WordPress core directory within web root
theme-dir theme Theme source directory to symlink
theme-name theme Theme directory name in wp-content/themes/
mu-plugins-dir mu-plugins Custom mu-plugins directory to symlink
config-dir config Configuration files directory

Generated structure

web/                            ← Document root (nginx/apache)
├── index.php                   ← Generated front controller
├── wp-config.php               ← Generated configuration
├── wp/                         ← WordPress core (via composer)
└── wp-content/
    ├── themes/
    │   └── my-theme → ../../theme/
    ├── plugins/                ← Composer-managed plugins
    ├── mu-plugins/
    │   ├── 00-loader.php       ← Generated loader
    │   └── _custom → ../../mu-plugins/
    └── uploads/

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固