Download the PHP package czechphp/czech-bank-account without Composer
On this page you can find all versions of the php package czechphp/czech-bank-account. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download czechphp/czech-bank-account
More information about czechphp/czech-bank-account
Files in czechphp/czech-bank-account
Package czech-bank-account
Short Description Provides useful utilities for czech bank account validation and data manipulation.
License MIT
Informations about the package czech-bank-account
Czech Bank Account
Provides useful utilities for czech bank account validation and data manipulation.
Installation
Install the latest version with
Documentation
Bank Account Number Validator
Czech: Validátor českého národního čísla bankovního účtu
Bank Code Validator
Czech: Validátor kódů platebního styku v ČR (kódy bank)
Variable Symbol Validator
Czech: Validátor variabilního symbolu
Specific Symbol Validator
Czech: Validátor specifického symbolu
Constant Symbol Validator
Czech: Validátor konstantního symbolu
In default validates only format of constant symbol.
To use optional validation against database of known constant symbols,
validator needs Filter
instance in the constructor and filter
option in the validate
methods call.
Constant Symbol Component
Loads list of known constant symbols and filters out specified categories and symbols.
In the provided database of constant symbols groups all
, public
and restricted
are used.
- group
all
contains all symbols without exception - group
public
contains symbols that are safe to use by public - group
restricted
contains symbols that only banks or government is allowed to use
Note that provided database of known constant symbols may be incomplete or restriction groups may be incorrectly set. The reason is that it is complicated to obtain up to date list of constant symbols and the fact that constant symbols are slowly deprecated by the government. This database exist so that it is possible to restrict user from entering constant symbol that public is not allowed to use.
ArrayRequireLoader
In default loads data bundled with library, but can be set to read from any file.
Filter
Filters loaded data.
Filter criteria is divided into filters include and exclude. Both filters accept group names and individual constant symbol codes.
For example criteria ['include' => ['public', 'restricted'], 'exclude' => ['5']]
will return list of symbols that are part of of groups public
and/or restricted
while symbol 5
is excluded from the list.
ArrayCacheFilter
Caches result of latest criteria.
It is recommended to use at least array cache due to the size of the list of known constant symbols. Loading and filtering of the list can take up to tens of milliseconds.
Bank Code Component
Loads directory of payment system codes.
Loaded data is multidimensional array in following format:
FilesystemLoader
In default loads data bundled with library, but can be set to read from any file.
FileGetContentsLoader
Loads data from official remote source using file_get_contents
.
SymfonyHttpClientLoader
Loads data from official remote source using http client implementing symfony/http-client-implementation.
SymfonyCachedLoader
Decorator loader caches result from parent loader using cache client implementing symfony/cache-implementation.
ChainLoader
Chains loaders. If chained loader fails, then it calls next loader in line.
Bank Account Number Format Converter
Converts bank account number format between common formats.
All versions of czech-bank-account with dependencies
ext-json Version *
symfony/cache-contracts Version ^2 || ^3
symfony/http-client-contracts Version ^2 || ^3