PHPackages                             organisationsnummer/organisationsnummer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. organisationsnummer/organisationsnummer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

organisationsnummer/organisationsnummer
=======================================

Validate Swedish Organisationsnummer

2.1.0(2y ago)322.7k↑12.7%2[1 issues](https://github.com/organisationsnummer/php/issues)[1 PRs](https://github.com/organisationsnummer/php/pulls)1MITPHPPHP &gt;=8.1CI passing

Since Mar 17Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/organisationsnummer/php)[ Packagist](https://packagist.org/packages/organisationsnummer/organisationsnummer)[ Fund](https://opencollective.com/sweidproject)[ RSS](/packages/organisationsnummer-organisationsnummer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (8)Used By (1)

organisationsnummer
===================

[](#organisationsnummer)

[![Test](https://github.com/organisationsnummer/php/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/organisationsnummer/php/actions/workflows/test.yml)

Validate Swedish organization numbers.

Follows version 1.1 of the [specification](https://github.com/organisationsnummer/meta#package-specification-v11).

Install the package:

```
composer require organisationsnummer/organisationsnummer

```

Example
-------

[](#example)

```
use Organisationsnummer\Organisationsnummer;

Organisationsnummer::valid('202100-5489');
// => true
```

See [OrganisationsnummerTest.php](https://github.com/organisationsnummer/php/blob/master/tests/OrganisationsnummerTest.php) for more examples.

License
-------

[](#license)

MIT

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance53

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~176 days

Total

5

Last Release

818d ago

Major Versions

1.1.0 → 2.0.02023-12-15

PHP version history (2 changes)1.0.0PHP &gt;=7.4

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacdbaebed26ea1ccdb7e37e2bfd2a572350e1d781d1c0b8830d444adb86104e?d=identicon)[frozzare](/maintainers/frozzare)

![](https://www.gravatar.com/avatar/320d3f8628cc6f5e60b96e9af6b2e4d6220426cb9723193fd50a88758ffb8f97?d=identicon)[Johannestegner](/maintainers/Johannestegner)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (56 commits)")[![Johannestegner](https://avatars.githubusercontent.com/u/2530181?v=4)](https://github.com/Johannestegner "Johannestegner (27 commits)")[![frozzare](https://avatars.githubusercontent.com/u/14610?v=4)](https://github.com/frozzare "frozzare (5 commits)")[![rasmusbe](https://avatars.githubusercontent.com/u/2124386?v=4)](https://github.com/rasmusbe "rasmusbe (1 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")

---

Tags

hacktoberfestorganisationsnummerpersonnummerphputilityvatSwedishPersonnummerOrganisationsnummer

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/organisationsnummer-organisationsnummer/health.svg)

```
[![Health](https://phpackages.com/badges/organisationsnummer-organisationsnummer/health.svg)](https://phpackages.com/packages/organisationsnummer-organisationsnummer)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[mpociot/vat-calculator

EU VAT calculation, the way it should be.

1.3k3.9M18](/packages/mpociot-vat-calculator)[personnummer/personnummer

Validate Swedish social security numbers

34739.3k3](/packages/personnummer-personnummer)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5432.1M3](/packages/mage2tv-magento-cache-clean)

PHPackages © 2026

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