PHPackages                             knucklepuck/carbon-field-radio-image-enhanced - 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. knucklepuck/carbon-field-radio-image-enhanced

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

knucklepuck/carbon-field-radio-image-enhanced
=============================================

Carbon Fields extension, that adds a Radio\_Image\_Enhanced field type.

3.1.2(3y ago)035GPL-2.0+JavaScript

Since Aug 26Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Knucklepuck/carbon-field-radio-image-enhanced)[ Packagist](https://packagist.org/packages/knucklepuck/carbon-field-radio-image-enhanced)[ Docs](http://www.knucklepuckmedia.com)[ RSS](/packages/knucklepuck-carbon-field-radio-image-enhanced/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (0)

Creating a new Carbon Field
===========================

[](#creating-a-new-carbon-field)

Step-by-step guide on how to create a new Carbon Field.

Introduction
------------

[](#introduction)

The [Carbon Fields](https://github.com/htmlburger/carbon-fields) library has many built-in fields, but you may find it necessary to define a new type of field for your specific project needs.

The following tutorial will explain how to create a custom Carbon Field.

### Step 1: Download the template

[](#step-1-download-the-template)

To make it as easy as possible, we have prepared a Carbon Field template that contains a frame for the PHP Carbon Field class and a webpack build process.

You can download the template from here:

Template Structure

- `/src` - field files folder
- `/languages` - folder for .po, .mo and .pot files
- `/core` - folder for all of your .php files
- `/field.php` - bootstrapping php code

### Step 2: Name your field

[](#step-2-name-your-field)

Replace the `Radio_Image_Enhanced` and `radio_image_enhanced` (case sensitive) placeholders in all files. Also rename the files that contain the placeholders.

**NB!** If your field name contains multiple words, for example Image Gallery, your class names should look like this:

- **PHP class:** `Image_Gallery_Field`
- **Field Component Registration:** `image_gallery` (refer to `registerFieldType`@`/src/index.js`)

### Step 3: Build assets

[](#step-3-build-assets)

1. Execute `composer dump-autoload` to create the required `autoload.php` which needs to be included in your theme.
2. Execute `yarn install` in the root directory to install all build process requirements.
3. Execute `yarn build` to build the final minimized bundle

##### Optional

[](#optional)

Execute `yarn start` to continuously build bundle during development. Note that you should add `define( 'SCRIPT_DEBUG', true );` to your `wp-config.php` file in order to load the files generated by the dev build process.

### Step 4: Customize

[](#step-4-customize)

Here is a quick overview of some of the methods you can customize:

#### PHP

[](#php)

`to_json()`

You can use this method to modify the field properties that are passed to the React component which represents the field.

`field_type_activated`

Used for initialization processes that are called once per field type (e.g. setup localization files).

`admin_enqueue_scripts()`

Used to enqueue CSS/JavaScript files.

`admin_init()`

Called for each field instance when the field is initialized. (back-end)

`init()`

Called for each field instance when the field is initialized. (back-end, front-end)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~121 days

Recently: every ~182 days

Total

7

Last Release

1408d ago

Major Versions

v1.4 → 3.1.02022-08-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/182726?v=4)[Joey Blake](/maintainers/joeyblake)[@joeyblake](https://github.com/joeyblake)

---

Top Contributors

[![joeyblake](https://avatars.githubusercontent.com/u/182726?v=4)](https://github.com/joeyblake "joeyblake (7 commits)")[![nstryker](https://avatars.githubusercontent.com/u/2374597?v=4)](https://github.com/nstryker "nstryker (4 commits)")

---

Tags

wordpresscarbon-fieldcarbon-field-radio-image-enhanced

### Embed Badge

![Health badge](/badges/knucklepuck-carbon-field-radio-image-enhanced/health.svg)

```
[![Health](https://phpackages.com/badges/knucklepuck-carbon-field-radio-image-enhanced/health.svg)](https://phpackages.com/packages/knucklepuck-carbon-field-radio-image-enhanced)
```

###  Alternatives

[iamntz/carbon-fields-urlpicker

Carbon Fields extension that adds a URL picker field type.

1441.7k](/packages/iamntz-carbon-fields-urlpicker)[htmlburger/carbon-field-icon

Carbon Fields extension, that adds a Icon field type.

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

Carbon Fields extension, that adds a number field type.

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

PHPackages © 2026

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