PHPackages                             nowo-tech/otp-input-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/otp-input-bundle

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

nowo-tech/otp-input-bundle
==========================

Symfony OTP FormType with multi-input UI mapped to a single field value.

v1.0.1(2mo ago)00[4 PRs](https://github.com/nowo-tech/OTPInputBundle/pulls)MITPHPPHP &gt;=8.1 &lt;8.6CI passing

Since Apr 1Pushed 2w agoCompare

[ Source](https://github.com/nowo-tech/OTPInputBundle)[ Packagist](https://packagist.org/packages/nowo-tech/otp-input-bundle)[ Docs](https://github.com/nowo-tech/otp-input-bundle)[ GitHub Sponsors](https://github.com/HecFranco)[ RSS](/packages/nowo-tech-otp-input-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (32)Versions (9)Used By (0)

OTP Input Bundle
================

[](#otp-input-bundle)

[![CI](https://github.com/nowo-tech/OtpInputBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/nowo-tech/OtpInputBundle/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/c72b08b781217fb9a8f4be0040e3a5351134bf7d17a0581c9513cbc69d24a52f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f776f2d746563682f6f74702d696e7075742d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/nowo-tech/otp-input-bundle)[![Packagist Downloads](https://camo.githubusercontent.com/b5b7c3f3ccc7bef487f2a5b4d9be56a6c9c439bd1e0de1a83251d4c37cc8fff7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f776f2d746563682f6f74702d696e7075742d62756e646c652e737667)](https://packagist.org/packages/nowo-tech/otp-input-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/40e9502f5eb9da10d35bc75cdad5bf4e8d32da74c1bc637d590982000039fd43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f776f2d746563682f6f74702d696e7075742d62756e646c652e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nowo-tech/OtpInputBundle)[![Coverage](https://camo.githubusercontent.com/cd0704b56f1d56def350b6d0164316307bb2f47834225fd85443b6fb0059bc73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d3130302532352d627269676874677265656e)](#tests-and-coverage)

> Star **Found this useful?** Install it from Packagist and support the project on GitHub.

Customizable Symfony OTP `FormType` with multiple visible inputs that map to a single field value.

FrankenPHP worker mode: Not declared as supported for this bundle at the moment.

Demo preview
------------

[](#demo-preview)

[![OTP Input Bundle demo](docs/images/otp-demo.png)](docs/images/otp-demo.png)

Features
--------

[](#features)

- `OtpType::class` for verification codes (2FA, email confirmation, magic code).
- Multi-input UI rendered in Twig form themes.
- Stores data as one string value in your DTO/entity.
- Customizable length, classes, numeric/alphanumeric mode, and uppercase normalization.
- TypeScript + Vite assets in `src/Resources/assets`.

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 notes](docs/DEMO-FRANKENPHP.md)

Quick usage
-----------

[](#quick-usage)

```
use Nowo\OtpInputBundle\Form\OtpType;

$builder->add('otpCode', OtpType::class, [
    'length' => 6,
    'numeric_only' => true,
    'container_class' => 'd-flex gap-2',
    'input_class' => 'form-control text-center',
    'gap_class' => 'otp-grid',
]);
```

The value received in `otpCode` is a single string like `123456`.

Tests and coverage
------------------

[](#tests-and-coverage)

- PHP: 100%
- TS/JS: 100%
- Python: N/A

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance92

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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.

###  Release Activity

Cadence

Every ~14 days

Total

2

Last Release

77d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7947bfc3f2ce9574a18a2c60f3d95b5d1b0740e65dc929332c92f1df21f75ab?d=identicon)[HecFranco](/maintainers/HecFranco)

---

Top Contributors

[![HecFranco](https://avatars.githubusercontent.com/u/24323276?v=4)](https://github.com/HecFranco "HecFranco (7 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (2 commits)")

---

Tags

symfonyotp2fatypescriptviteformSymfony Bundleone-time-passwordForm Type

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nowo-tech-otp-input-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nowo-tech-otp-input-bundle/health.svg)](https://phpackages.com/packages/nowo-tech-otp-input-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M380](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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