czechphp/czech-bank-account
Utilities to validate and work with Czech bank payment identifiers in PHP: bank account numbers, bank codes, variable/specific/constant symbols. Includes a filesystem loader for Czech payment system bank code data. Composer-installable package.
CzechBankAccount\Constants\SYMBOL_DATABASE). If your codebase references these, refactor before upgrading.bool or structured data). Compatibility with Laravel’s Validator facade remains intact.InvalidArgumentException handling suffices.| Risk Area | Mitigation Strategy | Update for v2.0.0 |
|---|---|---|
| False Positives/Negatives | Cross-validate with CNB’s official API. | No change. |
| Deprecation | Monitor GitHub; fork if abandoned. | Resolved: Deprecated classes removed. Lower risk of hidden deprecations. |
| Performance | Benchmark validation latency. | No change. |
| License Compliance | MIT license remains permissive. | No change. |
| Future-Proofing | Abstract behind BankAccountValidatorInterface. |
Recommended: Update interface to exclude deprecated methods if any were exposed. |
| Backward Compatibility | New Risk: Projects using deprecated classes will break. | Action Required: Audit codebase for CzechBankAccount\Constants\* usage. |
CzechBankAccount\Constants\* classes? If yes, refactor before upgrading.__get(), dynamic calls).$this->app->singleton(BankAccountValidator::class, function ($app) {
return new \CzechBankAccount\Validator(); // Updated: No deprecated classes here.
});
$validator = Validator::make($request->all(), [
'account' => [function ($attribute, $value, $fail) {
if (!\CzechBankAccount\Validator::validate($value)) { // Static call avoids DI issues.
$fail('The :attribute is invalid.');
}
}],
]);
$validator = new \CzechBankAccount\Validator();
grep -r "CzechBankAccount\\Constants" .
grep -r "SYMBOL_DATABASE" .
"CZ123").Validator::getSymbolDatabase() if it existed).CzechBankAccount\Constants\* will fail. Audit required.composer update czechphp/czech-bank-account --with-dependencies
use CzechBankAccount\Constants\SYMBOL_DATABASE).AppServiceProvider if using deprecated class bindings.BankAccountValidatorInterface) to isolate the package.interface BankAccountValidatorInterface {
public function validate(string $account): bool;
// Add other public methods used in your codebase.
}
ClassNotFound errors (deprecated classes).league/iban).| Failure Mode | Impact | Mitigation |
|---|---|---|
| Deprecated Class Usage | Runtime errors (ClassNotFound). |
Audit and refactor before upgrading. |
| Validation Logic Bug | False positives/negatives. | Cross-validate with CNB’s API or secondary tool. |
| Package Abandonment | No updates for CNB rule changes. | Fork the package or switch to a maintained alternative (e.g., league/iban). |
| **PHP/Lar |
How can I help you explore Laravel packages today?