Download the PHP package asignua/filament-iban without Composer

On this page you can find all versions of the php package asignua/filament-iban. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-iban

Filament IBAN

Stand With Ukraine

Filament IBAN

Tests

An IBAN field for Filament 5 that behaves: the user sees and edits the number in groups of four, the database gets the compact form, and the value is validated against the SWIFT IBAN registry (country, length, account structure, mod 97) for every IBAN country. Optionally it shows the bank name, BIC and city for Ukrainian and Polish accounts (and, once downloaded, German, Austrian, Swiss, Liechtenstein and Czech ones), with a warning when the bank is in liquidation. Also ships the validation rule, an infolist entry, a table column and a value helper. No dependencies besides Filament, light and dark mode friendly.

Screenshots

A table with IbanColumn: grouped numbers with bank, BIC and city

The field groups the number as you type and shows the bank, BIC and city underneath - with a warning when the bank is in liquidation:

IbanInput with bank details and a liquidation warning under the field

Every IBAN country is checked for length, account structure and check digits:

A validation error for a wrong IBAN

IbanEntry on a view page

Dark mode:

Dark mode

Requirements

Installation

Registering the plugin on a panel is optional - every class works without it:

Usage

Form field

Validation rule

Spaces and case are ignored. Empty values pass - add required yourself.

Helper

Infolist entry and table column

Both show the grouped number in a monospaced font and are copyable; copying puts the compact form on the clipboard. The bank name or details are rendered through belowContent() / description(), so setting your own ->belowContent() / ->description() replaces them.

Bank details

showBankName() shows the name only. showBankDetails() (on IbanInput, IbanEntry and IbanColumn, also with a closure) shows Name · BIC · City and, when the bank is being liquidated, a danger-coloured status after it ("In liquidation"):

It replaces the plain name where both are on; the config key show_bank_details turns it on everywhere. Which parts appear depends on the register: Ukraine has the town, address and status but no BIC; Poland has the BIC and the town of the branch; Germany, Austria, Switzerland and Liechtenstein have BIC, town, address and postcode; Czechia has the BIC. Everything shown comes from external registers and is escaped. The BIC is not derivable from an IBAN, so there is no Iban::bic(); read it from the directory:

Bank names

Shipped with data: Ukraine (the bank identifier is the MFO, IBAN positions 5-10) and Poland. Download-only (see below): Germany, Austria, Switzerland, Liechtenstein and Czechia. A Polish bank number (8 digits from position 5) is looked up in full first, because after mergers a number can belong to another bank than the code it starts with (144xxxxx is PKO BP, 150xxxxx is Erste, 106xxxxx is Alior); unlisted numbers fall back to the 5, 4 and 3 digit bank codes (cooperative banks have 4, a few institutions 5). Add your own country:

A directory that also implements Contracts\ResolvesBankDetails (bankDetails(string $iban): ?BankDetails) feeds showBankDetails(); one that implements only BankDirectory keeps working and shows just the name. The data files of the built-in directories accept two entry shapes in the same file: a plain string (the name only, as before) or an array ['name' => …, 'bic' => …, 'city' => …, 'address' => …, 'postcode' => …, 'status' => …] (only name is required). A downloader (Contracts\DownloadsBanks) may return either per code.

Keeping the bank registers current

The package ships the registers as they were on the day of the release. Refresh them any time:

DE, AT, CH, LI and CZ are not shipped: the licences of their registers are unclear for redistribution, so the package contains no data for them and a German, Austrian, Swiss, Liechtenstein or Czech IBAN shows no bank until you run filament-iban:update-banks <country> yourself (check the terms of the source first, see the table below). After that the bare command keeps them fresh. CH and LI come from the same SIX file but have a data file each, so update both (CH, LI).

The files are PHP arrays, written to filament-iban.banks_path (default storage/app/filament-iban/banks) through a temp file and rename() (opcache is invalidated for the CLI process only), and read before the shipped ones. A download below a sanity floor (50 UA, 200 PL, 20 CZ, 300 AT, 500 CH/LI, 2000 DE entries) or an HTTP failure leaves the current file alone; an override that cannot be loaded is ignored in favour of the shipped data. Only write to a directory your app alone can write to - the file is executed by PHP. --path=<dir> is an export (used to regenerate the data shipped with the package: php vendor/bin/testbench filament-iban:update-banks --path=resources/data/banks); the app reads only banks_path. Schedule it if you care: Schedule::command('filament-iban:update-banks')->monthly();. The command cannot reach other processes: PHP-FPM with opcache.validate_timestamps=0, Octane and queue workers keep the previous data (opcache, and the in-memory directory of a long-lived worker) until they are reloaded or restarted after an update.

Configuration

Key Default
banks_path null (storage/app/filament-iban/banks, env FILAMENT_IBAN_BANKS_PATH) where update-banks writes and where data files are read first
countries null default country restriction of every IbanInput
show_bank_name false default of showBankName() for field, entry and column
show_bank_details false default of showBankDetails() for field, entry and column (wins over show_bank_name)

Gotchas

Data sources and licences

Country Source Licence
UA National Bank of Ukraine open data, https://bank.gov.ua/NBU_BankInfo/get_data_branch?json (reference book of MFO) NBU open data, free to use with attribution
PL Narodowy Bank Polski, plan numeracji rachunków bankowych, https://ewib.nbp.pl/plewibnra?dokNazwa=plewibnra.txt public register published by NBP
DE Deutsche Bundesbank, Bankleitzahlendatei (fixed-width TXT, main entries only), linked from the Bundesbank download page not shipped - check the Bundesbank's terms before use
AT Oesterreichische Nationalbank, SEPA-Verzeichnis, https://www.oenb.at/docroot/downloads_observ/sepa-zv-vz_gesamt.csv not shipped - the file comes with OeNB copyright and liability terms
CH, LI SIX Interbank Clearing, Bank Master, https://api.six-group.com/api/epcd/bankmaster/v3/bankmaster_V3.csv not shipped - check the SIX terms before use
CZ Česká národní banka, kódy bank, https://www.cnb.cz/cs/platebni-styk/.galleries/ucty_kody_bank/download/kody_bank_CR.csv not shipped - check the CNB terms before use

The UA and PL files were downloaded with filament-iban:update-banks and reduced to code/number, name, BIC (PL), town, address and postcode (UA) and status (UA): for UA, branch MFOs carry the details of the head bank; for PL, every settlement number (3.7k) and bank code is kept, with the BIC and branch town but without the street address (it would quadruple the file). The IBAN country structures follow the SWIFT IBAN registry; examples that are not published ones are synthetic (valid check digits, made-up accounts). The code is MIT; check the terms of the registers before redistributing the data files beyond this package.

Translations

The interface ships in English, Ukrainian, German, Spanish, French, Italian, Dutch, Polish, Brazilian Portuguese and Turkish under the filament-iban::filament-iban namespace. A test keeps every language in step with the English keys. Override a string by publishing the translations (--tag=filament-iban-translations) and editing the copy in lang/vendor/filament-iban.

AI agents

The package ships Laravel Boost guidelines (resources/boost/guidelines/core.blade.php) so a coding agent wires it up correctly.

Testing

Changelog

See CHANGELOG.md.

More plugins by asign

All plugins: https://filamentphp.com/plugins?q=asign

License

The MIT License (MIT). See LICENSE.md.


All versions of filament-iban with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.11.2
illuminate/contracts Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package asignua/filament-iban contains the following files

Loading the files please wait ...