PHPackages                             ymcatwincities/custom\_formatters - 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. ymcatwincities/custom\_formatters

ActiveDrupal-module

ymcatwincities/custom\_formatters
=================================

Fork of custom\_formatters.

0691PHP

Since Sep 9Pushed 5y agoCompare

[ Source](https://github.com/ymcatwincities/custom_formatters)[ Packagist](https://packagist.org/packages/ymcatwincities/custom_formatters)[ RSS](/packages/ymcatwincities-custom-formatters/feed)WikiDiscussions 8.x-3.x Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Custom Formatters
=================

[](#custom-formatters)

The Custom Formatters module allows users to easily create custom Field Formatters without the need to write a custom module. Custom Formatters can then be exported as Drupal configuration entities.

Features
--------

[](#features)

- Pluggable formatter types:

    - **Formatter presets**
        Create simple formatters from existing formatters with preset formatter settings.
    - **HTML + Tokens**
        A HTML based editor with Token support.
    - **PHP**
        A PHP based editor with support for multiple fields and multiple values.
    - **Twig**
        A Twig based editor with support for multiple fields and multiple values.
- Supports for all fieldable entities, including but not limited to:

    - Drupal core - Comment, Node, Taxonomy term and User entities.
    - Field collection module - Field-collection item entity.
    - Media module - Media entity.
- Exportable as:

    - Drupal configuration entities.
- Integrates with:

    - **Contextual links** *(Drupal core)*Adds a hover link for quick editing of Custom Formatters.
    - **Token**
        Adds the Token tree browser to the HTML + Tokens engine.

Recommended Modules
-------------------

[](#recommended-modules)

- [Field tokens](http://drupal.org/project/field_tokens)
- [Token](http://drupal.org/project/token)

Usage/Configuration
-------------------

[](#usageconfiguration)

Read the manual at: [drupal.org/node/2514412](https://www.drupal.org/node/2514412)

Makefile entries
----------------

[](#makefile-entries)

For easy downloading of Custom Formatters and it's required/recommended modules and/or libraries, you can use the following entries in your makefile:

```
  projects:
    custom_formatters
    field_tokens
    token

```

**Note:** It is highly recommended to specify the version of your projects, the above format is only for the sake of simplicity.

Testing / DCIR
--------------

[](#testing--dcir)

This project is configured for testing via the Drupal common CI Runner (DCIR).

To run DCIR, simply run the following command from the project directory.

`docker run -v $(pwd):/dcir -it deciphered/dcir:latest`

TODOs / Roadmap
---------------

[](#todos--roadmap)

- Add Contextual links configuration as formatter setting.
- Add Dependency definition to Formatter form.
- Add granular permissions to Formatter types.
- Add Formatter list view?
    - Would require adding support for Formatter config entities in Views.
- Add custom support for Seven theme / Formatter add page.
- Add ability to change field types that aren't in use.
- Set usages of formatters to default formatter on deletion.
- Re-add save &amp; edit?
- Re-add preview.
- Re-add export?
- Tests:
    - Ensure that if a formatter is in used it's field type can't change.
    - Add test for configuration dependencies.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1388b312dca2d4c24fb3474c71a6729b13b255860ff0188b0286013bc703bf5a?d=identicon)[podarok](/maintainers/podarok)

![](https://www.gravatar.com/avatar/4558114408c700ee4fe122cf32e229c67e2a72a8da55256930a02685612572fa?d=identicon)[Open-Y-Distro](/maintainers/Open-Y-Distro)

---

Top Contributors

[![Decipher](https://avatars.githubusercontent.com/u/161090?v=4)](https://github.com/Decipher "Decipher (107 commits)")[![podarok](https://avatars.githubusercontent.com/u/563412?v=4)](https://github.com/podarok "podarok (5 commits)")

### Embed Badge

![Health badge](/badges/ymcatwincities-custom-formatters/health.svg)

```
[![Health](https://phpackages.com/badges/ymcatwincities-custom-formatters/health.svg)](https://phpackages.com/packages/ymcatwincities-custom-formatters)
```

PHPackages © 2026

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