PHPackages                             robertcorponoi/acf-gutenberg-blocks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. robertcorponoi/acf-gutenberg-blocks

Archived

robertcorponoi/acf-gutenberg-blocks
===================================

00PHP

Pushed 6y agoCompare

[ Source](https://github.com/robertcorponoi/acf-gutenberg-blocks)[ Packagist](https://packagist.org/packages/robertcorponoi/acf-gutenberg-blocks)[ RSS](/packages/robertcorponoi-acf-gutenberg-blocks/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersionsUsed By (0)

ACF Gutenberg Blocks
====================

[](#acf-gutenberg-blocks)

ACF Gutenberg Blocks allows you to easily define ACF modiles as components consisting of PHP definitons, Twig structure, and stying. This lets you keep your ACF components defined in the code and cleanly stored in the project structure.

**Table of Contents:**

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [API](#api)
- [Field Methods](#field-properties)

**Features**
------------

[](#features)

- Easily create custom blocks for a seamless page building experience.
- Abstracts away from the creation of ACF modules and turning them into Gutenberg blocks.
- Group your php, twig, and styling in component folders for easy readability.

**Installation**
----------------

[](#installation)

To use ACF Gutenberg Blocks you must have following prerequisites:

- [Composer](https://getcomposer.org/download/)
- [Advanced Custom Fields](https://www.advancedcustomfields.com/)
- PHP &gt;=7.2
- Wordpress &gt;=5.2

Then you can use composer to install it like so:

```
$ composer require "robertcorponoi/acf-gutenberg-blocks"
```

**Usage**
---------

[](#usage)

While any file structure will work, it's recommended to create a new folder at the top level in your theme for all of the blocks and add a functions.php file containing the following:

```
