/IbanNet

C# .NET IBAN validator

Primary LanguageC#Apache License 2.0Apache-2.0

IbanNet

IbanNet is a .NET library providing functionality to validate and parse an International Bank Account Number also known as IBAN.


Build status Tests codecov

IbanNet NuGet NuGet Documentation
IbanNet.DataAnnotations NuGet NuGet Documentation
IbanNet.DependencyInjection.Autofac NuGet NuGet Documentation
IbanNet.DependencyInjection.ServiceProvider NuGet NuGet Documentation
IbanNet.FluentValidation NuGet NuGet Documentation

Example with validator

IIbanValidator validator = new IbanValidator();
ValidationResult validationResult = validator.Validate("NL91 ABNA 0417 1643 00");
if (validationResult.IsValid)
{
    // ..
}

Example with Iban type

Iban iban;
IIbanParser parser = new IbanParser(new IbanValidator());
bool success = parser.TryParse("NL91 ABNA 0417 1643 00", out iban);

Contributions

PR's are welcome. Please rebase before submitting, provide test coverage, and ensure the AppVeyor build passes. I will not consider PR's otherwise.

Contributors

  • skwas (author/maintainer)

Useful info