PHPackages                             yojnc/nova-color-count-fields - 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. yojnc/nova-color-count-fields

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

yojnc/nova-color-count-fields
=============================

A Laravel Nova fields with color warning count.

453Vue

Since Feb 20Pushed 7y agoCompare

[ Source](https://github.com/yojnc/nova-color-count-fields)[ Packagist](https://packagist.org/packages/yojnc/nova-color-count-fields)[ RSS](/packages/yojnc-nova-color-count-fields/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Nova Color Counter Field
================================

[](#laravel-nova-color-counter-field)

A colorable notifications in text or textarea Nova fields about min chars reached. [![](https://github.com/yojnc/nova-color-count-fields/raw/assets/images/textarea_counter.png)](https://github.com/yojnc/nova-color-count-fields/blob/assets/images/textarea_counter.png)

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

[](#installation)

Install the package into a Laravel app that uses [Nova](https://nova.laravel.com) with Composer:

```
composer require yojnc/nova-color-count-fields
```

Usage
-----

[](#usage)

You must call minChars() method on field to show counter

```
minChars($count)
```

### Text Field

[](#text-field)

Add the field to your resource in the `fields` method:

```
use YojNC\Fields\ColorCountText;

ColorCountTextArea::make('Title')->minChars($minChars), // integer
```

[![](https://github.com/yojnc/nova-color-count-fields/raw/assets/images/text.png)](https://github.com/yojnc/nova-color-count-fields/blob/assets/images/text.png)The field is displayed as an `` element.

The field extends the `Laravel\Nova\Fields\Text` field, so all the usual methods are available.

### Textarea Field

[](#textarea-field)

```
use YojNC\Fields\ColorCountTextArea;

ColorCountTextArea::make('Title')->minChars($minChars), // integer
```

[![](https://github.com/yojnc/nova-color-count-fields/raw/assets/images/textarea.png)](https://github.com/yojnc/nova-color-count-fields/blob/assets/images/textarea.png)The field is displayed as an `` element.

The field extends the `Laravel\Nova\Fields\TextArea` field, so all the usual methods are available.

### Available methods

[](#available-methods)

To show warning (yellow) between danger and success use this

```
use YojNC\Fields\ColorCountTextArea;

ColorCountTextArea::make('Title')->minChars($count)->errorUntil($percentageInt), //default $pectentage = 80
```

To show counter inside alert box use this

```
use YojNC\Fields\ColorCountTextArea;

ColorCountTextArea::make('Title')->minChars($count)->withCounter($showBool), //default $showBool = false
```

[![](https://github.com/yojnc/nova-color-count-fields/raw/assets/images/textarea_counter.png)](https://github.com/yojnc/nova-color-count-fields/blob/assets/images/textarea_counter.png)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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://www.gravatar.com/avatar/feebfeb9a0b94164cc90201c0328dc187136425dc54a83bd72e32f86a6a5c3b7?d=identicon)[yojnc](/maintainers/yojnc)

---

Top Contributors

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

---

Tags

laravelnovavue

### Embed Badge

![Health badge](/badges/yojnc-nova-color-count-fields/health.svg)

```
[![Health](https://phpackages.com/badges/yojnc-nova-color-count-fields/health.svg)](https://phpackages.com/packages/yojnc-nova-color-count-fields)
```

###  Alternatives

[contributte/neonizer

Collection of useful scripts for manipulaton with NEON files. Support composer pre-install / post-install events. Set/get parameters, validate files.

14852.4k](/packages/contributte-neonizer)[eyecatchup/webmaster-tools-data

An easy way to automate downloading of data tables from Google Webmaster Tools

1052.1k](/packages/eyecatchup-webmaster-tools-data)

PHPackages © 2026

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