Download the PHP package studiometa/foehn-acf without Composer

On this page you can find all versions of the php package studiometa/foehn-acf. 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-acf

studiometa/foehn-acf

Advanced Custom Fields integration for Føhn: ACF blocks, field groups and options pages, discovered from attributes.

See the documentation.

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

Installation

ACF Pro is a WordPress plugin and is not a Composer dependency of this package. Nothing here registers anything when ACF is absent: each discovery guards on the function it needs.

Why it is a package

Custom fields no longer require a paid plugin. #[AsPostMeta] in the framework registers a meta key with a REST schema, which is what puts a field in the block editor and makes it bindable — so the default path needs no ACF at all.

ACF remains the better answer when the editing UI matters: repeaters, flexible content, conditional logic and media pickers are its actual product. This package is how a project opts into it.

The two do not conflict at the storage layer. ACF stores its values in ordinary post meta, so declaring #[AsPostMeta(key: 'price')] for a key ACF also manages is legitimate and useful: ACF keeps the editing UI, and the declaration adds the REST schema. That is the migration path.

What it provides

Attribute Registers
#[AsAcfBlock] An ACF block
#[AsAcfFieldGroup] A field group
#[AsAcfOptionsPage] An options page

Plus make:acf-block, make:field-group and make:options-page, the four field fragment builders, and AcfOptionsService.

Upgrading from Føhn 0.4

The classes keep their namespaces, so no imports change. Add the requirement:

License

MIT


All versions of foehn-acf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
stoutlogic/acf-builder Version ^1.12
studiometa/foehn Version 0.6.3
tempest/container Version ^3.18
tempest/discovery Version ^3.18
tempest/generation Version ^3.18
timber/timber Version ^2.5
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-acf contains the following files

Loading the files please wait ...