PHPackages                             kokiddp/carbon-fields-innerblocks - 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. kokiddp/carbon-fields-innerblocks

ActiveLibrary

kokiddp/carbon-fields-innerblocks
=================================

Adds InnerBlocks support to Carbon Fields blocks.

v0.1(10mo ago)014GPL-2.0+PHPPHP &gt;=7.4

Since Jul 16Pushed 10mo agoCompare

[ Source](https://github.com/kokiddp/carbon-fields-innerblocks)[ Packagist](https://packagist.org/packages/kokiddp/carbon-fields-innerblocks)[ RSS](/packages/kokiddp-carbon-fields-innerblocks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Carbon Fields InnerBlocks
=========================

[](#carbon-fields-innerblocks)

This is a Composer package that extends [Carbon Fields](https://carbonfields.net) to support `InnerBlocks` inside Gutenberg blocks.

Features
--------

[](#features)

- Gutenberg `InnerBlocks` integration
- Support for multiple innerblock fields per block
- Unlimited nested innerblocks
- Configurable attributes:
    - `allowed_blocks()`
    - `template()`
    - `template_lock()`
    - `orientation()`
- Prevents use outside Gutenberg (e.g. options pages)

---

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

[](#installation)

```
composer require kokiddp/carbon-fields-innerblocks
```

The field will be automatically registered when the package is autoloaded by Composer.

---

Usage Example
-------------

[](#usage-example)

```
use Carbon_Fields\Block;
use Carbon_Fields\Field;

Block::make('Content Block')
    ->add_fields([
        Field::make('text', 'section_title', 'Section Title'),
        Field::make('innerblock', 'main_content', 'Main Content')
            ->set_allowed_blocks(['core/paragraph', 'core/image'])
            ->set_template([
                ['core/paragraph', ['placeholder' => 'Start typing...']]
            ])
            ->set_template_lock(false)
            ->set_orientation('vertical'),
        Field::make('innerblock', 'sidebar_content', 'Sidebar Content')
    ])
    ->set_render_callback(function ($fields, $attributes, $inner_blocks) {
        echo '';
        echo '' . esc_html($fields['section_title']) . '';
        echo '' . $inner_blocks . '';
        echo '' . $inner_blocks . '';
        echo '';
    });
```

---

Limitations
-----------

[](#limitations)

- This field only works inside Gutenberg block contexts
- It will log an error and render nothing if used in options, users, terms, etc.

---

License
-------

[](#license)

MIT © Gabriele Coquillard

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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 ~0 days

Total

10

Last Release

306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc7dcbcfeffa65f505db4bc96415a9f4311bcd3d68cdd8c6f100d6ad62dfdea9?d=identicon)[kokiddp](/maintainers/kokiddp)

### Embed Badge

![Health badge](/badges/kokiddp-carbon-fields-innerblocks/health.svg)

```
[![Health](https://phpackages.com/badges/kokiddp-carbon-fields-innerblocks/health.svg)](https://phpackages.com/packages/kokiddp-carbon-fields-innerblocks)
```

###  Alternatives

[htmlburger/carbon-fields-plugin

WordPress plugin loader for Carbon Fields.

1750.5k2](/packages/htmlburger-carbon-fields-plugin)[matepaiva/wp-graphql-crb

Wordpress wrapper to expose Carbon Fields to WpGraphQL queries

248.4k](/packages/matepaiva-wp-graphql-crb)[htmlburger/carbon-field-icon

Carbon Fields extension, that adds a Icon field type.

198.7k](/packages/htmlburger-carbon-field-icon)[htmlburger/carbon-field-number

Carbon Fields extension, that adds a number field type.

1016.7k1](/packages/htmlburger-carbon-field-number)

PHPackages © 2026

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