# laravel-rust-iban documentation

> Rust port of globalcitizen/php-iban: IBAN validation, formatting, parsing, national checksums, and country registry data for Laravel for Rust.

- Package: laravel-rust-iban (Laravel for Rust, alpha), crates: `laravel-rust-iban`, `laravel-rust-iban-core`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); Framework: laravel-rust 0.2.x; MSRV: Rust 1.99 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/laravel-rust-iban), [crates.io](https://crates.io/crates/laravel-rust-iban/0.1.0), [docs.rs](https://docs.rs/laravel-rust-iban/0.1.0), [Changelog](https://oss.bowerbird.si/iban/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-rust-iban/blob/322f32ccaf92144d5d5727285efc84ca03fd603e/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-rust-iban/blob/322f32ccaf92144d5d5727285efc84ca03fd603e/SECURITY.md)
- Based on: [globalcitizen/php-iban](https://github.com/globalcitizen/php-iban): Reference behavior for the independent Rust implementation.
- PHP parity: core (14 covered, 34 diverged, 11 planned of 59 abilities; 565 fixtures; follows globalcitizen/php-iban v5.03b; verified 2026-12-04)
- Community package, not affiliated with Laravel.
- HTML version: https://oss.bowerbird.si/iban/docs/
- Source: https://github.com/bowerbird-si/laravel-rust-iban/blob/322f32ccaf92144d5d5727285efc84ca03fd603e/docs/index.md

Rust port of [`globalcitizen/php-iban`](https://github.com/globalcitizen/php-iban): IBAN validation, formatting, parsing, national checksums, and country registry data for Laravel for Rust.

```rust
use laravel_rust_iban::Iban;

fn main() -> Result<(), laravel_rust_iban::Error> {
    let iban = Iban::parse("be68 5390 0754 7034")?;
    assert_eq!(iban.machine_format(), "BE68539007547034");
    assert_eq!(iban.human_format(), "BE68 5390 0754 7034");
    assert_eq!(iban.obfuscated_format(), "BE** **** **** 7034");
    Ok(())
}
```

The package has two crates:

| Crate | What it holds |
| --- | --- |
| `laravel-rust-iban-core` | The framework-free library: `Iban`, `Country`, `NationalCheck`, `Error` and the free functions. No runtime dependencies. |
| `laravel-rust-iban` | The Laravel for Rust adapter: re-exports the core, and adds the `IbanRule` validation rule and the `IbanServiceProvider` with optional MiniJinja filters. |

Read the pages in this order:

| If you want to… | Read |
| --- | --- |
| Install the package and validate your first IBAN | [Getting started](https://oss.bowerbird.si/iban/docs/getting-started/) |
| Parse, format and split IBANs, and work with check digits | [Working with IBANs](https://oss.bowerbird.si/iban/docs/ibans/) |
| Check Belgian, Spanish, French and other national check digits | [National check digits](https://oss.bowerbird.si/iban/docs/national-check-digits/) |
| Look up a country's IBAN length, structure, SEPA status and EU membership | [Countries](https://oss.bowerbird.si/iban/docs/countries/) |
| Validate request input and format IBANs in templates | [Validation and templates](https://oss.bowerbird.si/iban/docs/validation/) |
| Find the Rust equivalent of a PHP call | [Migrating from PHP](https://oss.bowerbird.si/iban/docs/migrating-from-php/) |

The package does not port BIC handling: `globalcitizen/php-iban` has none.

Community package, not affiliated with Laravel.
