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(7mo ago)0303MITPHPPHP &gt;=8.4CI passing

Since Nov 14Pushed 7mo 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 3w 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 85% of packages

Maintenance65

Regular maintenance activity

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M376](/packages/easycorp-easyadmin-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k2](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M519](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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