Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Character Counter Laravel Package

schmeits/filament-character-counter

View on GitHub
Deep Wiki
Context7
v5.1.0

Added

  • showCharacterCounter(bool|Closure $condition = true) method to conditionally display the character counter on individual fields (#41, thanks @mediatorviolet)
  • Central Kurdish (ckb) translation (#43, thanks @Hamoi1)

Notes

showCharacterCounter() was merged after the v5.0.1 tag and never released, which caused #50. This release ships it via Composer.

Full Changelog: https://github.com/schmeits/filament-character-counter/compare/v5.0.1...v5.1.0

v5.0.1

## Fixed

- **characterLimit() is now a soft limit again** (#36): characterLimit() no longer enforces HTML maxlength or validation. Use maxLength() for hard enforcement, or combine both.

- Fixed test suite (removed obsolete BladeCaptureDirective dependency)

- Fixed PHPStan config (removed deprecated options)

v5.0.0

What's New

✨ Added

  • Filament v5 Support: Full compatibility with Filament v5 (Livewire v4) alongside v4
  • Comprehensive Tests: Unit tests for all component types (TextInput, Textarea, RichEditor)
  • Better Spacing: Proper spacing for RichEditor character counter

🐛 Fixed

RichEditor Character Counting - Complete refactor:

  • Fixed JavaScript initialization errors
  • Added all required Filament v4/v5 parameters with safe defaults
  • Switched to direct DOM text content reading for accuracy
  • Implemented Livewire.hook('commit') for reactive updates
  • Character counter now updates in real-time while typing

HasCharacterLimit Trait:

  • Automatically enforces HTML maxlength attribute
  • Prevents paste overflow beyond character limit
  • Ensures consistency between visual counter and enforcement

🔧 Technical Details

  • RichEditor uses `$el.querySelector()` for DOM-based character counting
  • Added `.fi-fo-rich-editor-wrapper` CSS class for proper spacing
  • Textarea maxLength enforcement with Alpine.js watcher
  • Views compatible with both Filament 4 and 5

Testing

Tested and working in:

  • ✅ Filament v4 (Livewire v3)
  • ✅ Filament v5 (Livewire v4)

All components (TextInput, Textarea, RichEditor) working correctly in both versions.

v4.0.0-beta2

Updated readme

v4.0.0-beta1

First release Filament 4 version

1.3.4

New : Added French translation (thanks to @tgeorgel)

1.3.3

Fix: The showInsideControl was missing from the Textarea (Thanks @CharlieEtienne for the PR)

1.3.2

Updated:

  • updated rich-editor.blade.php
    • Fixing async alpine not loading in spa
    • Add disableGrammarly Method
    • Use Heroicons for rich editor and Markdown editor
    • Add CSS class to rich editor editor
  • updated textarea.blade.php
    • Fixing async alpine not loading in spa
1.3.1

Changed: Updated README with new RichEditor support

1.3.0

New: Added Arabi clanguage (thanks to Omar @devOMAR-2) New: Added RichEditor support

1.2.4

New: Added German translation (thanks to @dissto) Fix: Fixed a translation key (thanks to @dissto)

1.2.3

Fix: Respect maxLength in combination with characterLimit

1.2.2

fix: typo in translation for the dutch variant of characters

1.2.1

Fixed a bug if you use ->live() on the Fields, the counter would stutter and the character count was not correct.

1.2.0

Added the option to show the counter in the component (default is outside the component)

1.1.0

Fix: Placed helper in correct section

1.0.0

First release of the package

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata