{"id":16233628,"url":"https://github.com/jongotlin/identitynumbervalidatorbundle","last_synced_at":"2025-10-04T14:18:21.979Z","repository":{"id":27120481,"uuid":"112574399","full_name":"jongotlin/IdentityNumberValidatorBundle","owner":"jongotlin","description":"Symfony bundle to validate Swedish identity-, coordination- and organizationnumbers","archived":false,"fork":false,"pushed_at":"2022-02-14T13:41:35.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T05:05:42.232Z","etag":null,"topics":["personnummer","social-security-number","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jongotlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-30T06:35:11.000Z","updated_at":"2022-02-14T13:41:06.000Z","dependencies_parsed_at":"2022-08-07T12:15:28.444Z","dependency_job_id":null,"html_url":"https://github.com/jongotlin/IdentityNumberValidatorBundle","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongotlin%2FIdentityNumberValidatorBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongotlin%2FIdentityNumberValidatorBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongotlin%2FIdentityNumberValidatorBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongotlin%2FIdentityNumberValidatorBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongotlin","download_url":"https://codeload.github.com/jongotlin/IdentityNumberValidatorBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247799362,"owners_count":20998169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["personnummer","social-security-number","symfony","symfony-bundle"],"created_at":"2024-10-10T13:13:19.620Z","updated_at":"2025-10-04T14:18:16.958Z","avatar_url":"https://github.com/jongotlin.png","language":"PHP","readme":"# IdentityNumberValidatorBundle\n\n[![Build Status](https://img.shields.io/travis/jongotlin/IdentityNumberValidatorBundle/master.svg)](https://travis-ci.org/jongotlin/IdentityNumberValidatorBundle)\n\nThis 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).\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require jongotlin/identity-number-bundle\n```\n\n```php\nclass AppKernel extends Kernel\n{\n  public function registerBundles()\n  {\n    $bundles = array(\n        // ...\n        new JGI\\IdentityNumberValidatorBundle\\IdentityNumberValidatorBundle(),\n    }\n  }\n}\n```\n\n## Usage\n```php\nuse JGI\\IdentityNumberValidatorBundle\\Validator\\Constraints as IdentityNumberAssert;\n\n/**\n * @IdentityNumberAssert\\IdentityNumber(allowCoordinationNumber=true)\n */\nprivate $identityNumber;\n\n/**\n * @IdentityNumberAssert\\OrganizationNumber(allowPersonalIdNumber=true, allowCoordinationNumber=true)\n */\nprivate $organizationNumber;\n```\n\nAvailable options are\n - `allowCoordinationNumber` When set to true coordination number (samordningsnummer) is accepted. Default is false.\n - `allowPersonalIdNumber` When set to true personal identity number is accepted as organization number. Default is false.\n - `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.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongotlin%2Fidentitynumbervalidatorbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongotlin%2Fidentitynumbervalidatorbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongotlin%2Fidentitynumbervalidatorbundle/lists"}