承接 studiometa/foehn-starter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

studiometa/foehn-starter

最新稳定版本:0.4.1

Composer 安装命令:

composer create-project studiometa/foehn-starter

包简介

Starter theme for Foehn — a modern WordPress framework powered by Tempest.

README 文档

README

A complete WordPress starter theme demonstrating all Føhn features.

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

Quick Start with DDEV

composer create-project studiometa/foehn-starter my-project
cd my-project
ddev start

That's it. DDEV will:

  1. Start PHP 8.5 + MariaDB + nginx
  2. Copy .env.example to .env (with DDEV defaults)
  3. Run composer install (generates web/, symlinks, wp-config.php)
  4. Install WordPress with admin/admin credentials
  5. Activate the starter theme

Open the site: ddev launch Admin panel: ddev launch /wp/wp-admin (admin / admin)

Quick Start without DDEV

composer create-project studiometa/foehn-starter my-project
cd my-project
cp .env.example .env
# Edit .env with your database credentials
composer install

Then point your web server's document root to the web/ directory.

Project Structure

my-project/
├── theme/                      # WordPress theme (versioned)
│   ├── app/
│   │   ├── Blocks/             # ACF blocks
│   │   ├── ContextProviders/   # Context providers
│   │   ├── Controllers/        # Template controllers
│   │   ├── Data/               # DTOs for block context
│   │   ├── Hooks/              # WordPress hooks (actions & filters)
│   │   ├── ImageSizes/         # Custom image sizes
│   │   ├── Menus/              # Navigation menus
│   │   ├── Models/             # Custom post types (Timber models)
│   │   ├── Taxonomies/         # Custom taxonomies
│   │   └── foehn.config.php    # Framework configuration
│   ├── assets/
│   │   ├── js/                 # JavaScript (js-toolkit)
│   │   │   ├── app.js          # Entry point
│   │   │   └── components/     # Custom components
│   │   └── css/                # CSS (Tailwind v4)
│   │       ├── app.css         # Entry point
│   │       ├── base/           # Base styles
│   │       └── components/     # Component styles
│   ├── templates/              # Twig templates
│   │   ├── layouts/            # Base layouts
│   │   ├── pages/              # Page templates
│   │   └── components/         # Reusable components
│   ├── functions.php           # Single boot line
│   └── style.css               # Theme header
│
├── .ddev/                      # DDEV configuration
├── vite.config.js              # Vite build config
├── web/                        # Generated document root (gitignored)
├── .env                        # Environment variables (not needed with DDEV)
├── composer.json               # PHP dependencies
└── package.json                # JS dependencies

What's included

Custom Post Types

  • Product — with price, sale price, and product categories
  • Testimonial — with author info and ratings

Custom Taxonomies

  • ProductCategory — hierarchical, with custom rewrite
  • ProductTag — flat taxonomy for products

Template Controllers

  • SingleController — handles all single post/page views
  • ArchiveController — handles archives, categories, tags
  • SearchController — search results page
  • Error404Controller — 404 error page

Hooks

  • ThemeHooks — theme setup, image sizes, menus

Context Providers

  • GlobalContextProvider — site info, menus, available on all templates

Built-in Foehn Hooks (via foehn.config.php)

  • CleanHeadTags — removes unnecessary <head> tags
  • DisableEmoji — removes emoji scripts/styles
  • DisableOembed — removes oEmbed discovery
  • DisableVersionDisclosure — hides WordPress version
  • DisableXmlRpc — disables XML-RPC + pingback
  • GenericLoginErrors — hides username enumeration on login
  • YouTubeNoCookieHooks — converts YouTube embeds to no-cookie variant

Development

Front-end

npm install             # Install JS dependencies
npm run dev             # Start Vite dev server (HMR)
npm run build           # Build for production
npm run lint            # Lint JS, CSS and Twig
npm run fix             # Auto-fix linting issues

DDEV Commands

ddev start              # Start the environment
ddev stop               # Stop the environment
ddev launch             # Open the site in browser
ddev ssh                # SSH into the container
ddev composer install   # Run composer inside the container
ddev wp <command>       # Run WP-CLI commands
ddev describe           # Show URLs and connection info

Without DDEV

# Requirements: PHP 8.5+, Composer 2.x, MySQL/MariaDB

# Development server (via wp-cli)
wp server --docroot=web

# Or configure nginx/apache to point to web/

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固