Download the PHP package studiometa/foehn without Composer

On this page you can find all versions of the php package studiometa/foehn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package foehn

🍃 Føhn

A modern WordPress framework powered by Tempest Framework, featuring attribute-based auto-discovery for hooks, post types, blocks, and more.

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

Requirements

Installation

Quick Start

Bootstrap Føhn in your theme's functions.php:

That's it! Føhn will automatically discover and register all your classes in the app/ directory.

Features

Hooks

Register WordPress actions and filters directly on your methods:

Post Types

Define custom post types as classes with automatic Timber classmap integration:

Taxonomies

ACF Blocks

Create ACF blocks with dependency injection:

Typed DTOs for Block Context

Instead of returning plain arrays from compose(), use typed DTOs for autocompletion and type safety:

Then use it in your block:

The DTO is automatically flattened to a snake_case array before reaching render() and Twig templates. Property names like imageUrl become image_url in the template context.

Built-in DTOs:

DTO Description Factory
LinkData Link/button fields LinkData::fromAcf($acfLink)
ImageData Image/attachment fields ImageData::fromAttachmentId($id)
SpacingData Spacing fields SpacingData::fromAcf($fields, $prefix)

All compose() methods on AcfBlockInterface, BlockInterface and BlockPatternInterface accept either array or Arrayable return types.

Native Gutenberg Blocks with Interactivity API

Context Providers

Inject data into specific templates:

Template Controllers

Handle template rendering with full control:

Block Patterns

Register block patterns with Twig templates:

REST API Routes

Shortcodes

CLI Commands

Føhn provides WP-CLI commands for scaffolding:

Dependency Injection

All discovered classes support constructor injection via Tempest's container:

Configuration

Føhn can be configured in your theme:

Documentation

For complete documentation, see the Føhn documentation.

License

MIT License. See LICENSE for details.


All versions of foehn with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
studiometa/twig-toolkit Version ^2.1
tempest/container Version ^3.18
tempest/discovery Version ^3.18
tempest/generation Version ^3.18
tempest/support Version ^3.18
timber/timber Version ^2.5
vlucas/phpdotenv Version ^5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package studiometa/foehn contains the following files

Loading the files please wait ...