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(3mo ago)0124↓100%MITPHPPHP &gt;=8.4CI passing

Since Nov 14Pushed 3mo 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 today

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

41

—

FairBetter than 89% of packages

Maintenance78

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

119d 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

[sfmok/request-input-bundle

Converts request data into DTO inputs objects with validation.

3512.8k](/packages/sfmok-request-input-bundle)[digitalrevolution/symfony-request-validation

Automatic request validation for symfony

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

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

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

PHPackages © 2026

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