PHPackages                             adamaru/polish-validator-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. adamaru/polish-validator-bundle

AbandonedArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

adamaru/polish-validator-bundle
===============================

Symfony bundle with validators for Polish identification numbers: PESEL, NIP, REGON, PWZ.

1.2.0(7y ago)26.2k1MITPHPPHP &gt;=5.6

Since Jul 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/adamaru/polish-validator-bundle)[ Packagist](https://packagist.org/packages/adamaru/polish-validator-bundle)[ RSS](/packages/adamaru-polish-validator-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (7)Versions (7)Used By (0)

Symfony 3/4 bundle with Polish validators
=========================================

[](#symfony-34-bundle-with-polish-validators)

[![License](https://camo.githubusercontent.com/c8d6ecc6dc4cf4efedc489d8cd3f723450d0896fdb354e2d6d027d6e123a1261/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6164616d6172752f706f6c6973682d76616c696461746f722d62756e646c652e737667)](https://packagist.org/packages/adamaru/polish-validator-bundle)[![Version](https://camo.githubusercontent.com/bd861ec1d216aa1bba466d3600654c61528b28cb8b396e6981648bfa7881dde9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d6172752f706f6c6973682d76616c696461746f722d62756e646c652e737667)](https://packagist.org/packages/adamaru/polish-validator-bundle)

This is Symfony 3/4 bundle with validators for Polish identification numbers like: PESEL, NIP, REGON and PWZ.

Installation
============

[](#installation)

```
composer require adamaru/polish-validator-bundle
```

Add bundle to AppKernel.php

```
    public function registerBundles()
        {
            $bundles = array(
                ...
                new Kiczort\PolishValidatorBundle\KiczortPolishValidatorBundle(),
                ...
            );

            return $bundles;
        }
```

Documentation
=============

[](#documentation)

Example of use PeselValidator:
------------------------------

[](#example-of-use-peselvalidator)

There are PESEL numbers with errors in real word, so in case of this validator checksum checking is only for strict mode. In case of none strict mode it checks length, used chars and correctness of date of birth.

```
...
// src/AppBundle/Entity/Person.php
namespace AppBundle\Entity;

use Kiczort\PolishValidatorBundle\Validator\Constraints  as KiczortAssert;

class Person
{
    /**
     * @KiczortAssert\Pesel(
     *     message = "The '{{ value }}' is not a valid PESEL number.",
     *     strict = true
     * )
     */
     protected $pesel;
}
```

Example of use NipValidator:
----------------------------

[](#example-of-use-nipvalidator)

```
...
// src/AppBundle/Entity/Person.php
namespace AppBundle\Entity;

use Kiczort\PolishValidatorBundle\Validator\Constraints as KiczortAssert;

class Person
{
    /**
     * @KiczortAssert\Nip
     */
     protected $nip;
}
```

Example of use RegonValidator:
------------------------------

[](#example-of-use-regonvalidator)

```
...
// src/AppBundle/Entity/Company.php
namespace AppBundle\Entity;

use Kiczort\PolishValidatorBundle\Validator\Constraints as KiczortAssert;

class Company
{
    /**
     * @KiczortAssert\Regon
     */
     protected $regon;
}
```

Example of use PwzValidator:
----------------------------

[](#example-of-use-pwzvalidator)

PWZ means "licence to practise a profession" (pl. "prawo wykonywania zawodu"), number given to doctors from NIL (polish Chamber of Physicians and Dentists). Validator accepts also empty strings and nulls so you have to add "Assert/NotBlank" myself.

```
...
// src/AppBundle/Entity/Company.php
namespace AppBundle\Entity;

use Kiczort\PolishValidatorBundle\Validator\Constraints  as KiczortAssert;

class Doctor
{
    /**
     * @KiczortAssert\Pwz
     */
     protected $pwz;
}
```

Bug tracking
============

[](#bug-tracking)

[GitHub issues](https://github.com/adamaru/polish-validator-bundle/issues). If you have found bug, please create an issue.

MIT License
===========

[](#mit-license)

License can be found [here](https://github.com/adamaru/polish-validator-bundle/blob/master/LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~233 days

Total

5

Last Release

2647d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.1

1.2.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d127c06caa447f8550113da0d1af5f1b86a8b9865b20ba9c1faa31d440cfb17?d=identicon)[adamaru](/maintainers/adamaru)

---

Top Contributors

[![mleczakm](https://avatars.githubusercontent.com/u/3474636?v=4)](https://github.com/mleczakm "mleczakm (24 commits)")[![kiczort](https://avatars.githubusercontent.com/u/580696?v=4)](https://github.com/kiczort "kiczort (3 commits)")[![mikoweb](https://avatars.githubusercontent.com/u/4729995?v=4)](https://github.com/mikoweb "mikoweb (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![piotrbrzezina](https://avatars.githubusercontent.com/u/6128834?v=4)](https://github.com/piotrbrzezina "piotrbrzezina (1 commits)")

---

Tags

validatorSymfony Bundlesymfony-validatorregonnippeselpolish validatorpl validatorpwz

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adamaru-polish-validator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/adamaru-polish-validator-bundle/health.svg)](https://phpackages.com/packages/adamaru-polish-validator-bundle)
```

###  Alternatives

[kiczort/polish-validator-bundle

Symfony bundle with validators for Polish identification numbers: PESEL, NIP, REGON, PWZ.

1223.2k](/packages/kiczort-polish-validator-bundle)[kiczort/polish-validator

Validators for Polish identification numbers: PESEL, NIP, REGON.

11122.8k5](/packages/kiczort-polish-validator)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[cuyz/valinor-bundle

Symfony integration of `cuyz/valinor` — a library that helps to map any input into a strongly-typed value object structure.

51215.0k2](/packages/cuyz-valinor-bundle)[api-platform/validator

API Platform validator component

223.2M10](/packages/api-platform-validator)[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)
