PHPackages                             tourze/idcard-manage-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. tourze/idcard-manage-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

tourze/idcard-manage-bundle
===========================

提供身份证验证、解析生日性别等功能的 Symfony Bundle

0.1.0(5mo ago)010MITPHPCI passing

Since Apr 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/idcard-manage-bundle)[ Packagist](https://packagist.org/packages/tourze/idcard-manage-bundle)[ RSS](/packages/tourze-idcard-manage-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (41)Versions (5)Used By (0)

idcard-manage-bundle
====================

[](#idcard-manage-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/95c95020cb17fe7ebcc16f2121b9edcf63bb88bd65c186c3d25c6519dc13c986/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f6964636172642d6d616e6167652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/idcard-manage-bundle)[![PHP Version Require](https://camo.githubusercontent.com/cb66626e8e7ea5aeeda29b62864149ea57ab81f8a5e47d3765dd88576eb4b14c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f746f75727a652f6964636172642d6d616e6167652d62756e646c652f7068703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/idcard-manage-bundle)[![License](https://camo.githubusercontent.com/69d2d8d3fc989cb482acc206781b580a8e4e80b579cc62fdcc2005ae6720094c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f6964636172642d6d616e6167652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/idcard-manage-bundle)[![Build Status](https://camo.githubusercontent.com/c5e3b7ddbd62865df68244685d0032581dc94a1a9614bf9d34d1cf81c8cdc765/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652f6964636172642d6d616e6167652d62756e646c652f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/tourze/idcard-manage-bundle/actions)[![Quality Score](https://camo.githubusercontent.com/f27a22bb25a5436253907bcc86555d2918de443ae99fd766c1e7d1a88840ef88/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f75727a652f6964636172642d6d616e6167652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tourze/idcard-manage-bundle)[![Code Coverage](https://camo.githubusercontent.com/d77d4590722944b76b8c6df21f79ed35c29a722e0b2d8faa29f0fc987c7e72bb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f6964636172642d6d616e6167652d62756e646c653f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/idcard-manage-bundle)[![Total Downloads](https://camo.githubusercontent.com/db35259797de076083ecaa6bba304078ce374643cf2128eb342d16fdf670ccc3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f6964636172642d6d616e6167652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/idcard-manage-bundle)

A Symfony bundle for Chinese ID card management and validation.

Features
--------

[](#features)

- ✅ Chinese ID card format validation
- ✅ Birthday extraction with custom separator support
- ✅ Gender detection with enum support (GB/T 2261 standard)
- ✅ Full Symfony framework integration
- ✅ Comprehensive test coverage
- ⚠️ Two-element verification (placeholder for external API integration)

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

[](#installation)

```
composer require tourze/idcard-manage-bundle
```

Quick Start
-----------

[](#quick-start)

```
