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

v1.2.3(2mo ago)114[1 issues](https://github.com/nowo-tech/PasswordToggleBundle/issues)1MITPHPPHP &gt;=8.1 &lt;8.6

Since Dec 12Pushed 1mo agoCompare

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

READMEChangelog (6)Dependencies (20)Versions (8)Used By (1)

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/8e58b490725ac49cc8e463c473173681b324c9d92d7854275a785db013ca3de7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f6c6f676f3d706870)](https://php.net) [![Symfony](https://camo.githubusercontent.com/8fe7de83f11ab7ca74742794be56f9291632c8351a9ae5baea0bc1e9c4eb5a35/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d3625323025374325323037253230253743253230382d3030303030303f6c6f676f3d73796d666f6e79)](https://symfony.com) [![GitHub stars](https://camo.githubusercontent.com/9a73e4429b98b0b0a2e757fc20358d7ed12e92e785ebfb4f6b74993e0dbf032e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f776f2d746563682f70617373776f72642d746f67676c652d62756e646c652e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nowo-tech/PasswordToggleBundle) [![Coverage](https://camo.githubusercontent.com/cd0704b56f1d56def350b6d0164316307bb2f47834225fd85443b6fb0059bc73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d3130302532352d627269676874677265656e)](#tests-and-coverage)

> ⭐ **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)

- [Installation](docs/INSTALLATION.md)
- [Configuration](docs/CONFIGURATION.md)
- [Usage](docs/USAGE.md)
- [Contributing](docs/CONTRIBUTING.md)
- [Changelog](docs/CHANGELOG.md)
- [Upgrading](docs/UPGRADING.md)
- [Release](docs/RELEASE.md)
- [Security](docs/SECURITY.md)
- [Engram](docs/ENGRAM.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`** (`ux_icon()` in the default template; install the package — it is `composer suggest`ed, not a hard dependency of the bundle)
- ✅ 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

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

[](#installation)

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

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

```
