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
================================

2.0.0(4y ago)026.3k↓54.2%MITPHPPHP ^7.0|^8.0CI 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 yesterday

READMEChangelogDependencies (4)Versions (11)Used By (0)

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

[](#identitynumbervalidatorbundle)

[![Build Status](https://camo.githubusercontent.com/31594592df6ac0f17870e474e0849c3ba8c8be7866715ab7080c7b7aee98b749/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f6e676f746c696e2f4964656e746974794e756d62657256616c696461746f7242756e646c652f6d61737465722e737667)](https://travis-ci.org/jongotlin/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
```

```
class AppKernel extends Kernel
{
  public function registerBundles()
  {
    $bundles = array(
        // ...
        new JGI\IdentityNumberValidatorBundle\IdentityNumberValidatorBundle(),
    }
  }
}
```

Usage
-----

[](#usage)

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

/**
 * @IdentityNumberAssert\IdentityNumber(allowCoordinationNumber=true)
 */
private $identityNumber;

/**
 * @IdentityNumberAssert\OrganizationNumber(allowPersonalIdNumber=true, allowCoordinationNumber=true)
 */
private $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

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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 ~192 days

Recently: every ~381 days

Total

9

Last Release

1600d ago

Major Versions

1.2.0 → 2.0.02022-02-14

PHP version history (2 changes)1.0.0PHP ^7.0

2.0.0PHP ^7.0|^8.0

### 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

### 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.3k17.9M388](/packages/easycorp-easyadmin-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k13.0M218](/packages/simplesamlphp-simplesamlphp)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/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.

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

FIDO2/Webauthn Security Bundle For Symfony

66529.9k11](/packages/web-auth-webauthn-symfony-bundle)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128814.6k](/packages/auth0-symfony)

PHPackages © 2026

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