PHPackages                             ebrana/cz-bank-account-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. ebrana/cz-bank-account-validator-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

ebrana/cz-bank-account-validator-bundle
=======================================

2.0.1(5mo ago)0124↓100%MITPHPPHP &gt;=8.4CI passing

Since Nov 14Pushed 5mo agoCompare

[ Source](https://github.com/ebrana/cz-bank-account-validator-bundle)[ Packagist](https://packagist.org/packages/ebrana/cz-bank-account-validator-bundle)[ RSS](/packages/ebrana-cz-bank-account-validator-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

Bundle for czech account number validation
==========================================

[](#bundle-for-czech-account-number-validation)

Inspired by  that is enough if you just need a simple script.

This bundle adds Symfony validation constraint via PHP Attribute

Usage
-----

[](#usage)

Over property, that contains full number as string (i.e. xxx-xxxxxxx/xxxx)

```
use \Ebrana\CzBankAccountValidatorBundle\Validator\AccountNumberValid;

class Foo {
    #[AccountNumberValid]
    public ?string $accountNumber = null;
}
```

or if your class have parts separated, you can call it over method

```
use \Ebrana\CzBankAccountValidatorBundle\Validator\AccountNumberValid;

class Foo {
    public ?string $prefix = null;
    public string $accountNumber;
    public string $bankCode;
    //...
    #[AccountNumberValid(bankCodePath: 'bankCode', prefixPath: 'prefix')]
    public function getAccountNumber(): string
    {
        $number = $this->accountNumber . '/' . $this->bankCode;
        if (null !== $this->prefix) {
            $number = $this->prefix . '-' . $number;
        }

        return $number;
    }
    // ...
}
```

### Constraint options

[](#constraint-options)

You can specify path for specific errors in your constraint (see 2nd example) and also specify your custom messages.

### Bank codes provider

[](#bank-codes-provider)

We are using static list of current bank codes. But you can use custom logic to get the most up to date version from  .

Just use [decorator](https://symfony.com/doc/current/service_container/service_decoration.html) and implement your custom logic

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~11 days

Total

2

Last Release

168d ago

Major Versions

1.0.3 → 2.0.12025-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/1859e3990ee12f48cf66b7047b6aaeb89d330a2f05afba1520def109c4f2f1bd?d=identicon)[ViPEr\*CZ\*](/maintainers/ViPEr*CZ*)

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

---

Top Contributors

[![Kamhal24](https://avatars.githubusercontent.com/u/92356379?v=4)](https://github.com/Kamhal24 "Kamhal24 (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ebrana-cz-bank-account-validator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ebrana-cz-bank-account-validator-bundle/health.svg)](https://phpackages.com/packages/ebrana-cz-bank-account-validator-bundle)
```

###  Alternatives

[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)[digitalrevolution/symfony-validation-shorthand

Validation shorthand for symfony

12108.5k2](/packages/digitalrevolution-symfony-validation-shorthand)[digitalrevolution/symfony-request-validation

Automatic request validation for symfony

1296.0k](/packages/digitalrevolution-symfony-request-validation)[kiczort/polish-validator-bundle

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

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

PHPackages © 2026

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