PHPackages                             amphibee/acf-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. amphibee/acf-blocks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amphibee/acf-blocks
===================

Provide abstracted class to help build ACF-based Gutenberg Blocks

1.2(3y ago)1410.2k↓50%6[5 PRs](https://github.com/AmphiBee/acf-blocks/pulls)MITPHPPHP ^7.4 || ^8.0

Since Apr 18Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/AmphiBee/acf-blocks)[ Packagist](https://packagist.org/packages/amphibee/acf-blocks)[ RSS](/packages/amphibee-acf-blocks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (9)Used By (0)

ACF Blocks
==========

[](#acf-blocks)

Quickly declare your Gutenberg blocks with ACF and WordPlate Extended ACF

Requirements
------------

[](#requirements)

The package requires the following plugins:

- Advanced Custom Fields Pro
- WordPlate Extended ACF (included in the ACF Blocks package)

Installation
------------

[](#installation)

Require this package, with Composer, in the root directory of your project.

```
composer require amphibee/acf-blocks
```

Usage
-----

[](#usage)

### Declaring a block

[](#declaring-a-block)

```
use \AmphiBee\AcfBlocks\Block;
use \Extended\ACF\Fields\Text;
use \Extended\ACF\Fields\Textarea;

Block::make('My beautiful block', 'my_beautiful_block')
    ->setFields([
        Text::make('Title', 'title'),
        Textarea::make('Content', 'content'),
    ])
    ->disableCustomClasseName()
    ->setAllowedBlocks([
        'core/paragraph',
        'core/heading',
    ])
    ->setJsxTemplate([
        ['core/heading', [
            'level' => 2,
            'placeholder' => 'Title Goes Here',
        ]],
        ['core/paragraph', [
            'placeholder' => 'Content goes here',
        ]]
    ])
    ->loadAllFields()
    ->setMode('edit')
    ->setIcon('format-aside')
    ->setAlign('full')
    ->enableJsx()
    ->setRenderTemplate('partials/my-beautiful-block.php');
```

ACF Blocks is also compatible with Blade views !

```
use \AmphiBee\AcfBlocks\Block;
use \Extended\ACF\Fields\Text;
use \Extended\ACF\Fields\Textarea;

Block::make('My beautiful block', 'my_beautiful_block')
    ->setFields([
        \Extended\ACF\Fields\Text::make('Title', 'title'),
        \Extended\ACF\Fields\Textarea::make('Content', 'content'),
    ])
    ->setMode('preview')
    ->setIcon('editor-code')
    ->setAlign('wide')
    ->enableJsx()
    ->setView('partials.my-beautiful-block', [
        'key' => 'value',
    ]);
```

### Rendering a block

[](#rendering-a-block)

**Raw PHP template**

```

```

**Blade view**

```

    {{$field->title}}
    {{$field->content}}
    {{$viewData['key']}}
    {!! $innerBlocks !!}

```

### Declaring a category

[](#declaring-a-category)

```
use \AmphiBee\AcfBlocks\BlockCategory;

BlockCategory::make('My beautiful category', 'my_beautiful_category')
    ->setIcon('wordpress')
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance55

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~62 days

Total

3

Last Release

1367d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8435080f3e74b629258f291a62cb72aa9d63ee44d74e588f594dc6378c328fa2?d=identicon)[amphibee](/maintainers/amphibee)

---

Top Contributors

[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (27 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (11 commits)")[![denisdums](https://avatars.githubusercontent.com/u/47156341?v=4)](https://github.com/denisdums "denisdums (2 commits)")[![Sotramp](https://avatars.githubusercontent.com/u/43300457?v=4)](https://github.com/Sotramp "Sotramp (2 commits)")[![qhonnart-dot](https://avatars.githubusercontent.com/u/235116810?v=4)](https://github.com/qhonnart-dot "qhonnart-dot (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/amphibee-acf-blocks/health.svg)

```
[![Health](https://phpackages.com/badges/amphibee-acf-blocks/health.svg)](https://phpackages.com/packages/amphibee-acf-blocks)
```

###  Alternatives

[5ini99/think-addons

addons package for thinkphp5

1453.2k](/packages/5ini99-think-addons)[metrakit/faker-eddy-malou

Use Eddy Malou sentences for your dummy texts

172.7k](/packages/metrakit-faker-eddy-malou)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
