定制 nowo-tech/otp-input-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nowo-tech/otp-input-bundle

最新稳定版本:v1.0.1

Composer 安装命令:

composer require nowo-tech/otp-input-bundle

包简介

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

README 文档

README

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars 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

OTP Input Bundle demo

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

Additional documentation

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

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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固