PHPackages                             kduma/polish-validator - 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. kduma/polish-validator

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

kduma/polish-validator
======================

polish Validation rules for Laravel 5 Validator

v1.2.1(6y ago)21.2k3MITPHPPHP &gt;=5.4.0

Since Jan 31Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/LV-polish-validator-rules)[ Packagist](https://packagist.org/packages/kduma/polish-validator)[ RSS](/packages/kduma-polish-validator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

Package EOL
===========

[](#package-eol)

> **This package is deprecated and no longer maintained.**
>
> The package was built for Laravel 5.x and uses the legacy `Validator::extend()` API which has been superseded by the modern `ValidationRule` interface. It has not been updated to support Laravel 11+ and is incompatible with Laravel 13 (which requires PHP 8.3+).
>
> If you need PESEL or Polish identity card validation, consider implementing custom rules using Laravel's [`ValidationRule`](https://laravel.com/docs/validation#custom-validation-rules) interface — the validation logic from this package can be easily extracted into standalone rule classes.

---

L5-polish-validator-rules
=========================

[](#l5-polish-validator-rules)

[![Latest Stable Version](https://camo.githubusercontent.com/c106ce36158cf4f672ef7748415883dc8849ad48e53c3c39be585f9f54f3413d/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f706f6c6973682d76616c696461746f722f762f737461626c652e737667)](https://packagist.org/packages/kduma/polish-validator)[![Total Downloads](https://camo.githubusercontent.com/28a481a61ca615708c1a2bd9c2fdf7ad250c2a710b09e6ce29d1bbbf18000f10/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f706f6c6973682d76616c696461746f722f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/polish-validator)[![Latest Unstable Version](https://camo.githubusercontent.com/b289cb9fd9f7de4fe89dabc05f924d2a67a9ed63579a9418c830a0305e6c8c81/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f706f6c6973682d76616c696461746f722f762f756e737461626c652e737667)](https://packagist.org/packages/kduma/polish-validator)[![License](https://camo.githubusercontent.com/191658e4f19d6c65f2bd50a8869ab7e065238f7b013be5bdde488fa7a945d707/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f706f6c6973682d76616c696461746f722f6c6963656e73652e737667)](https://packagist.org/packages/kduma/polish-validator)[![SensioLabsInsight](https://camo.githubusercontent.com/4c1960235c59a66cc818f059fc00302a6165e768e9cefecf2810dda5427a0179/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35633530656238322d636437352d346331372d386637642d3834373233336338646435662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/5c50eb82-cd75-4c17-8f7d-847233c8dd5f)[![StyleCI](https://camo.githubusercontent.com/d35a0c7d90cae79a017a18a4a1a314cd7189aa701b4dd1d1346eb0e228f74b39/68747470733a2f2f7374796c6563692e696f2f7265706f732f33303132363439342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/30126494)

polish Validation rules for Laravel 5.X Validator

Check full documentation here: [opensource.duma.sh/libraries/deprecated/laravel-polish-validator](https://opensource.duma.sh/libraries/deprecated/laravel-polish-validator)

Setup
=====

[](#setup)

You can install the package via composer:

```
composer require kduma/polish-validator

```

If you are using Laravel 5.5, the service provider will automatically be discovered.

On earlier versions, you need to do that manually. You must add the Service Provider to the providers array in `config/app.php`:

```
KDuma\Validator\PolishValidatorRulesServiceProvider::class,

```

Usage
=====

[](#usage)

You have 2 new Validator rules:

- `pesel` or `\KDuma\Validator\PeselNumberRule()` - Checks if number is valid PESEL number
- `identity_card` or `\KDuma\Validator\PolishIdentityCardNumberRule()` - Checks if number is polish identity document number

Code Authors
============

[](#code-authors)

A special thanks to authors of [phpedia.pl](http://phpedia.pl/wiki/Walidacja_numeru_PESEL), an original pesel validator creators that this package is based on and [Mariusz Tomaszewski (on algorytm.org)](http://www.algorytm.org/numery-identyfikacyjne/numer-dowodu-osobistego/do-php.html) who wrote original identity card checker.

Packagist
=========

[](#packagist)

View this package on Packagist.org: [kduma/polish-validator](https://packagist.org/packages/kduma/polish-validator)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance52

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~440 days

Total

5

Last Release

2456d ago

Major Versions

v0.1.1 → v1.12015-06-09

### Community

Maintainers

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

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (25 commits)")[![wgmv](https://avatars.githubusercontent.com/u/6874094?v=4)](https://github.com/wgmv "wgmv (1 commits)")

---

Tags

laravelphplaravelvalidationpeselpolish

### Embed Badge

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

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

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.5k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

774680.8k19](/packages/wendelladriel-laravel-validated-dto)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M227](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

2171.4M5](/packages/ashallendesign-laravel-config-validator)

PHPackages © 2026

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