Download the PHP package studiometa/foehn-installer without Composer
On this page you can find all versions of the php package studiometa/foehn-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studiometa/foehn-installer
More information about studiometa/foehn-installer
Files in studiometa/foehn-installer
Package foehn-installer
Short Description Composer plugin that generates the WordPress web root, symlinks, and wp-config.php for Foehn projects.
License MIT
Informations about the package foehn-installer
Foehn Installer
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:
- Creates the
web/directory structure (document root) - Generates
web/wp-config.php(loads config fromconfig/directory) - Generates
web/index.php(WordPress front controller) - Symlinks
theme/→web/wp-content/themes/{name} - Symlinks
mu-plugins/→web/wp-content/mu-plugins/_custom - Generates the mu-plugin loader
- Copies the content of
public/intoweb/
Installation
Configuration
Configure via extra.foehn in your project's composer.json:
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 |
public-dir |
public |
Directory copied into the web root |
Generated structure
Public files
The installer copies the content of public-dir into the web root, dotfiles included. It copies the files and does not create symlinks. index.php, wp-config.php, the WordPress directory and wp-content/ belong to the installer: it does not copy a public file to these paths, and shows a warning. A file removed from public-dir is removed from the web root on the next install. See Public Files.
License
MIT
All versions of foehn-installer with dependencies
composer-plugin-api Version ^2.0