Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Provides a field formatter that integrates the countUp.js library.
The field formatter can be used on integer, float and decimal fields.
Field formatters can be applied in the display settings of an entity, for example.

Module Dependencies

For the module to work, you need to add the countup-js library to your projects libraries folder.
You can either do this manually or use composer merge plugin for this.

Installation with composer merge plugin

1. Add the repository to your composer.json file. It should look something like this:

{
    [...]
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
          "type": "package",
          "package": {
            "name": "inorganik/countup-js",
            "version": "2.4.2",
            "type": "drupal-library",
            "dist": {
              "url": "https://github.com/inorganik/countUp.js/archive/refs/tags/v2.4.2.zip",
              "type": "zip"
            }
          }
        },
    ]
    [...]

2. Add the config for merge-plugin in your composer.json in the extra section:

{
    "extra": {
        "merge-plugin": {
          "include": [
              "web/modules/contrib/*/composer.libraries.json"
          ],
          "recurse": true
        }
    },
}

3. If not added yet, install composer merge plugin.

composer require 'wikimedia/composer-merge-plugin:^2.0'

4. Install / Update the module by running one of the following commands:

composer require 'drupal/countup_formatter:^1.0'
composer update -W
composer update drupal/countup_formatter -W

Manual installation

Download the source code from github (Version 2.4.2 or newer) and place it in your projects libraries folder, which can typically be found in web/libraries/.
Make sure the path "libraries/countup.js/dist/countUp.umd.js" exists.

Clear the Drupal cache.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Nov 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable Mar 18, 2024
1.0.0 Stable Nov 9, 2023
1.0.x-dev Dev Nov 9, 2023