PHPackages                             jschaedl/iban-validation - 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. jschaedl/iban-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

jschaedl/iban-validation
========================

A small library for validating International BankAccount Numbers (IBANs).

v2.7.0(5mo ago)1022.8M—5.9%23[1 PRs](https://github.com/jschaedl/iban-validation/pulls)14MITPHPPHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Aug 27Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/jschaedl/iban-validation)[ Packagist](https://packagist.org/packages/jschaedl/iban-validation)[ Docs](https://github.com/jschaedl/iban-validation)[ RSS](/packages/jschaedl-iban-validation/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (27)Used By (14)

iban-validation
===============

[](#iban-validation)

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

A message to Russian 🇷🇺 people
------------------------------

[](#a-message-to-russian--people)

If you currently live in Russia, please read [this message](./ToRussianPeople.md).

Purpose
-------

[](#purpose)

A small library for validating International Bankaccount Numbers (IBANs) based on the IBAN Registry provided by SWIFT. See  for more information.

[![.github/workflows/ci.yaml](https://github.com/jschaedl/iban-validation/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/jschaedl/iban-validation/actions/workflows/ci.yaml)[![PHP Version](https://camo.githubusercontent.com/ab151284a110d8fef20830ec88550a7160717076772db8c19fcbe1b98492e71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d504850253230382e312532422d6c69676874626c75652e737667)](https://img.shields.io/badge/version-PHP%208.1%2B-lightblue.svg)[![Latest Stable Version](https://camo.githubusercontent.com/a83508848d838b62a0a6bbbd7571502a466c1e7738cb48b62511f0e59b9b3b98/68747470733a2f2f706f7365722e707567782e6f72672f6a7363686165646c2f6962616e2d76616c69646174696f6e2f762f737461626c65)](https://packagist.org/packages/jschaedl/iban-validation)[![Latest Unstable Version](https://camo.githubusercontent.com/b802252a8db2dcc4b0511f93afd39fccf473f2f8248cded553a3d19bbaa45abd/68747470733a2f2f706f7365722e707567782e6f72672f6a7363686165646c2f6962616e2d76616c69646174696f6e2f762f756e737461626c65)](https://packagist.org/packages/jschaedl/iban-validation)[![Total Downloads](https://camo.githubusercontent.com/faf04289d71018f7f8284b9115b5b3807d133e4bc04b53f475919296623a97cb/68747470733a2f2f706f7365722e707567782e6f72672f6a7363686165646c2f6962616e2d76616c69646174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/jschaedl/iban-validation)[![License](https://camo.githubusercontent.com/f921d258cbb85e1843fda186527b4b508e466c94c0e9eaf8b1f1a8eebcac9180/68747470733a2f2f706f7365722e707567782e6f72672f6a7363686165646c2f6962616e2d76616c69646174696f6e2f6c6963656e7365)](https://packagist.org/packages/jschaedl/iban-validation)

Development status
------------------

[](#development-status)

This library is ready to use. The Iban validation should be fine, but there is no warranty. **Please use it at your own risk.**

---

Features
--------

[](#features)

- full country support of IBAN validation based on SWIFT Registry
- customizable violation messages
- simple to use object-oriented api
- high test coverage
- DIC friendly

---

Installation
------------

[](#installation)

To install `jschaedl/iban-validation` via [composer](https://getcomposer.org/) use

```
$ composer require jschaedl/iban-validation
```

You can see this library on [Packagist](https://packagist.org/packages/jschaedl/iban-validation).

---

Iban Validation
---------------

[](#iban-validation-1)

```
