PHPackages                             jongotlin/identity-number-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. jongotlin/identity-number-bundle

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

jongotlin/identity-number-bundle
================================

3.0.1(1mo ago)027.5k↓49.4%MITPHPPHP ^8.2CI failing

Since Nov 30Pushed 4y ago2 watchersCompare

[ Source](https://github.com/jongotlin/IdentityNumberValidatorBundle)[ Packagist](https://packagist.org/packages/jongotlin/identity-number-bundle)[ RSS](/packages/jongotlin-identity-number-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (18)Used By (0)

IdentityNumberValidatorBundle
=============================

[](#identitynumbervalidatorbundle)

This Symfony Bundle uses [github.com/byrokrat/id](https://github.com/byrokrat/id) to validate swedish identity number (personnummer), coordination number (samordningsnummer) and organization number (organisationsnummer).

Install
-------

[](#install)

Via Composer

```
$ composer require jongotlin/identity-number-bundle
```

Usage
-----

[](#usage)

```
use JGI\IdentityNumberValidatorBundle\Validator\Constraints as IdentityNumberAssert;

#[IdentityNumberAssert\IdentityNumber(allowCoordinationNumber=true)]
private ?string $identityNumber;

#[IdentityNumberAssert\OrganizationNumber(allowPersonalIdNumber=true, allowCoordinationNumber=true)]
private ?string $organizationNumber;
```

Available options are

- `allowCoordinationNumber` When set to true coordination number (samordningsnummer) is accepted. Default is false.
- `allowPersonalIdNumber` When set to true personal identity number is accepted as organization number. Default is false.
- `strict` When set to true identity number must be exactly 12 digits and organization number 10 digits. No hyphen is accepted. If false identity number can be either 10 or 12 digits and with or without hyphen (or plus sign). Default is false.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance51

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% 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 ~313 days

Recently: every ~689 days

Total

11

Last Release

44d ago

Major Versions

1.2.0 → 2.0.02022-02-14

2.0.0 → 3.0.02026-07-04

PHP version history (3 changes)1.0.0PHP ^7.0

2.0.0PHP ^7.0|^8.0

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cc25aa1a5dad773350b590c5d53b6e862267aaf311144e2134037b53a30bf99?d=identicon)[jongotlin](/maintainers/jongotlin)

---

Top Contributors

[![jongotlin](https://avatars.githubusercontent.com/u/165154?v=4)](https://github.com/jongotlin "jongotlin (18 commits)")

---

Tags

personnummersocial-security-numbersymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jongotlin-identity-number-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jongotlin-identity-number-bundle/health.svg)](https://phpackages.com/packages/jongotlin-identity-number-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

589701.7k2](/packages/scheb-2fa)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66587.0k13](/packages/web-auth-webauthn-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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