PHPackages                             runopencode/dm-char-count-plugin - 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. runopencode/dm-char-count-plugin

AbandonedSymfony1-plugin[Utility &amp; Helpers](/categories/utility)

runopencode/dm-char-count-plugin
================================

dmCharCountPlugin - CharCount TextArea for Diem Extended

152JavaScript

Since Nov 24Pushed 13y ago2 watchersCompare

[ Source](https://github.com/RunOpenCode/dmCharCountPlugin)[ Packagist](https://packagist.org/packages/runopencode/dm-char-count-plugin)[ RSS](/packages/runopencode-dm-char-count-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

dmCharCountPlugin for Diem Extended
===================================

[](#dmcharcountplugin-for-diem-extended)

Author: [TheCelavi](http://www.runopencode.com/about/thecelavi)
Version: 1.0.0
Stability: Stable
Date: November 10th, 2012
Courtesy of [Run Open Code](http://www.runopencode.com)
License: [Free for all](http://www.runopencode.com/terms-and-conditions/free-for-all)

dmCharCountPlugin turns your textarea into char countable field.

You can use this widget in booth Admin, Front and for your forms:

- To have this field in admin, for your field, add in schema.yml: `extra: charcount`

Example:

```
Testobj:
  actAs:
    DmSortable:
  columns:
    title:            { type: string(255), notnull: true }
    is_active:        { type: boolean, notnull: true, default: false }
    meta_keywords:    { type: string(255), notnull: true }
    meta_description: { type: string(255), notnull: true, extra: charcount }

```

In base form of your class the form widget will be used: `new sfWidgetFormDmCharCountTextarea()`.

You can configure this widget on several different ways, via `config.yml` and in constructor of the class passing the options.

Available options for configuration
-----------------------------------

[](#available-options-for-configuration)

- `allowed`, int, default 255, maximum allowed chars.
- `warning`, int or percentage, default is 10%, on which number of chars to warn about possible exceeding of maximum number of chars. You can enter exact number of chars when you want for user to be warn.
- `counterText`, string, default is 'Characters left:'. The string is translated before it is rendered.

In `config.yml` are default settings for the widget:

```
default:
  dmCharCountPlugin:
    all:
      allowed: 255
      warning: 10%
      counterText: 'Characters left:'

```

`all` is for all form widgets - the default configuration. You can add the name of the form field for extra configuration options.

Example for `config.yml`:

```
default:
  dmCharCountPlugin:
    all:
      allowed: 255
      warning: 10%
      counterText: 'Characters left:'
    my_form[my_field]:
      allowed: 500

```

Of course, you can pass options into constructor of the widget as well:

```
new sfWidgetFormDmCharCountTextarea(array(
    'allowed' => 255,
    'warning' => '10%',
    'counterText' => 'Characters left:'
))

```

Importance of configuration:
----------------------------

[](#importance-of-configuration)

1. Constructor
2. Config for specific form widget by its name
3. Config for all form widgets

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/410738?v=4)[Nikola Svitlica](/maintainers/TheCelavi)[@TheCelavi](https://github.com/TheCelavi)

---

Top Contributors

[![TheCelavi](https://avatars.githubusercontent.com/u/410738?v=4)](https://github.com/TheCelavi "TheCelavi (4 commits)")

### Embed Badge

![Health badge](/badges/runopencode-dm-char-count-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/runopencode-dm-char-count-plugin/health.svg)](https://phpackages.com/packages/runopencode-dm-char-count-plugin)
```

###  Alternatives

[gilek/yii2-gtreetable

yii2-gtreetable is an extension of Yii 2 Framework, which is wrapper for bootstrap-gtreetable plug-in, on the other hand it provides functionality which allows to save the nodes states into database.

4111.8k](/packages/gilek-yii2-gtreetable)[olicek/form-selectize

Form extension for Nette framework

124.1k](/packages/olicek-form-selectize)

PHPackages © 2026

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