nowo-tech/phone-input-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

nowo-tech/phone-input-bundle

Composer 安装命令:

composer require nowo-tech/phone-input-bundle

包简介

Symfony bundle providing a phone form type with optional country prefix selector and flexible value formats

README 文档

README

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars Coverage

Symfony bundle providing a phone form type with optional country prefix selector and flexible value formats (E.164 string, separated array, or PhoneNumber value object).

Found this useful? Give it a star on GitHub so more developers can find it.

Features

  • Extends Symfony TelType with an optional country prefix selector (flags, dial codes, autocomplete search)
  • Three model formats: CONCATENATED (E.164), SEPARATED (array), OBJECT (PhoneNumber VO)
  • Validation by country ISO, dial prefix, or disabled (phone_validation)
  • Configurable prefix/flag display modes and CSS classes (Bootstrap, Tailwind, Foundation, custom)
  • Bundled country catalog and CSS flag icons; optional UX Icons for SVG flags

Documentation

Additional documentation

Quick start

composer require nowo-tech/phone-input-bundle
use Nowo\PhoneInputBundle\Form\Type\PhoneType;

$builder->add('mobile', PhoneType::class);

See docs/INSTALLATION.md for form theme, CSS assets, and optional dependencies.

Demo

Demos for Symfony 6.4, 7.0 and 8.0 live under demo/. From the bundle root:

make -C demo up-symfony8
# http://localhost:8003 (see demo/symfony8/.env.example)

The demo page shows 20 field examples and a CSS framework selector (?framework=bootstrap5|tailwind2|foundation6|symfony-default). See demo/README.md.

Demos use FrankenPHP without worker mode in development (changes visible on refresh). For production worker setup, see docs/DEMO-FRANKENPHP.md.

Requirements

  • PHP >= 8.2, < 8.6
  • Symfony ^6.0 || ^7.0 || ^8.0

Development

make up && make install && make test
make test-coverage   # PHP coverage report
make release-check   # cs-fix, phpstan, coverage, demo healthchecks

Tests and coverage

  • Tests: PHPUnit (unit + integration)
  • PHP: 95.75%
  • TS/JS: N/A
  • Python: N/A

License

MIT — see LICENSE.

Author

Created by Nowo.tech

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固