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

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 for Ukrainian and Polish accounts. 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 and bank names

The field groups the number as you type and shows the bank for Ukrainian and Polish accounts:

IbanInput with the bank name 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 is rendered through belowContent() / description(), so setting your own ->belowContent() / ->description() replaces it.

Bank names

Built in: Ukraine (the bank identifier is the MFO, IBAN positions 5-10) and Poland. 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:

Keeping the bank registers current

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

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 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); 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

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

Both files were downloaded with filament-iban:update-banks and reduced to code/number and name: for UA, branch MFOs carry the name of the head bank; for PL, every settlement number (3.1k) and bank code is kept. 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.

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.0
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 ...