PHPackages                             nowo-tech/password-toggle-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nowo-tech/password-toggle-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

nowo-tech/password-toggle-bundle
================================

Symfony bundle providing a password form type with toggle visibility feature

v2.0.5(1w ago)21.1k2MITPHPPHP &gt;=8.2 &lt;8.6CI passing

Since Dec 12Pushed 3w agoCompare

[ Source](https://github.com/nowo-tech/PasswordToggleBundle)[ Packagist](https://packagist.org/packages/nowo-tech/password-toggle-bundle)[ Docs](https://github.com/nowo-tech/PasswordToggleBundle)[ GitHub Sponsors](https://github.com/HecFranco)[ RSS](/packages/nowo-tech-password-toggle-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (54)Versions (22)Used By (2)

Password Toggle Bundle
======================

[](#password-toggle-bundle)

[![CI](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml) [![Packagist Version](https://camo.githubusercontent.com/da85dd1a4ac6768aeab3388812909fbb8d31ec2a83d5155d231b95d113d634c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f776f2d746563682f70617373776f72642d746f67676c652d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![Packagist Downloads](https://camo.githubusercontent.com/4549be9a6df74af795a6b890d78c076971e501721034ca1135fae201343675ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f776f2d746563682f70617373776f72642d746f67676c652d62756e646c652e737667)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE) [![PHP](https://camo.githubusercontent.com/3f99b197569aa2dcfbefff17ecc68d74098e7f929d8b52dc40f3a898f740eae1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d3737374242343f6c6f676f3d706870)](https://php.net) [![Symfony](https://camo.githubusercontent.com/7d4e4aaeb2d34975bb7d4d31bd666f354efd01e011d1799c80335c7a7cd62e7a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372e30253242253230253743253230382e302532422d3030303030303f6c6f676f3d73796d666f6e79)](https://symfony.com)

> ⭐ **Found this useful?** Give it a star on GitHub! It helps us maintain and improve the project.

Symfony bundle providing a password form type with toggle visibility feature.

[![Password Toggle Bundle Demo](docs/images/demo-screenshot.png)](docs/images/demo-screenshot.png)

Documentation
-------------

[](#documentation)

- [GitHub Actions CI requirements](docs/GITHUB_CI.md)
- [Installation](docs/INSTALLATION.md)
- [Configuration](docs/CONFIGURATION.md)
- [Usage](docs/USAGE.md)
- [Contributing](docs/CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
- [Changelog](docs/CHANGELOG.md)
- [Upgrading](docs/UPGRADING.md)
- [Release](docs/RELEASE.md)
- [Security](docs/SECURITY.md)
- [Engram](docs/ENGRAM.md)
- [Spec-driven development](docs/SPEC-DRIVEN-DEVELOPMENT.md)
- [GitHub Spec Kit](docs/SPEC-KIT.md)

### Additional documentation

[](#additional-documentation)

- [Demo with FrankenPHP (development and production)](docs/DEMO-FRANKENPHP.md)
- [Overriding bundle templates](docs/USAGE.md#overriding-bundle-templates)
- [Branching](docs/BRANCHING.md)

Features
--------

[](#features)

- ✅ Password form type with toggle visibility
- ✅ Customizable icons and labels
- ✅ **No Stimulus / no extra asset bundle** — toggle uses **inline** `onclick` / `onkeydown` (see `toggle_password_widget.html.twig`) for compatibility with Live Components
- ✅ Icons via **`symfony/ux-icons`** + **`symfony/http-client`** (Flex recipe installs both; graceful fallback + log warning if missing)
- ✅ Fully configurable CSS classes
- ✅ Works with Live Components
- ✅ Accessibility support (ARIA labels, keyboard navigation)
- ✅ Configuration validation with clear error messages
- ✅ Type validation for all options
- ✅ Can be disabled per field (renders simple password input)
- ✅ Symfony Flex recipe for automatic installation (ux-icons + http-client + icon assets from recipe **1.2.3+**)

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

[](#installation)

```
composer require nowo-tech/password-toggle-bundle
```

Then, register the bundle in your `config/bundles.php`:

```
