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)024.5k↓50%MITPHPPHP ^7.0|^8.0

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 1mo ago

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

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

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

1554d 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

[simplesamlphp/simplesamlphp

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

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[scheb/2fa

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

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

6914.0M62](/packages/scheb-2fa-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)

PHPackages © 2026

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