Coder Social home page Coder Social logo

iban's Introduction

PHP IBAN & BIC Library

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

#Installation

Require this package in your composer.json and update composer.

"tpweb/iban": "~1.*"

After updating composer, add the ServiceProvider to the providers array in config/app.php

TPWeb\Iban\IbanServiceProvider::class,

You can use the facade for shorter code. Add this to your aliases:

'Iban' => TPWeb\Iban\IbanFacade::class,

Documentation

Validation

$ibannr = "BE....";
$iban = new Iban($ibannr);
if($iban->isIbanValid()) {
    echo "IBAN is valid";
}

Laraval validator

public function store(Request $request) {
    $this->validate($request, ['ibannumber' => 'required|iban', 'bicnumber' => 'required|bic']);
}

Calculation (Only BE en NL)

$ibannr = "BE....";
$iban = new Iban($ibannr);
$bic = $iban->calculateBic();

The complete documentation can be found at: http://www.tpweb.org/my-projects/php-iban-library/

Countries Supported

The following 99 official and unofficial IBAN countries are supported.

  • Albania (AL)
  • Algeria (DZ)
  • Andorra (AD)
  • Angola (AO)
  • Austria (AT)
  • Azerbaijan (AZ)
  • Bahrain (BH)
  • Belgium (BE)
  • Benin (BJ)
  • Bosnia and Herzegovina (BA)
  • Brazil (BR)
  • British Virgin Islands (VG)
  • Bulgaria (BG)
  • Burkina Faso (BF)
  • Burundi (BI)
  • Cameroon (CM)
  • Cape Verde (CV)
  • Costa Rica (CR)
  • Côte d'Ivoire (CI)
  • Croatia (HR)
  • Cyprus (CY)
  • Czech Republic (CZ)
  • Denmark (DK)
  • Faroe Islands (FO)
  • Greenland (GL)
  • Dominican Republic (DO)
  • Estonia (EE)
  • Finland (FI)
  • Åland Islands (AX)
  • France (FR)
  • French Guiana (GF)
  • French Polynesia (PF)
  • French Southern Territories (TF)
  • Guadelope (GP)
  • Martinique (MQ)
  • Mayotte (YT)
  • New Caledonia (NC)
  • Réunion (RE)
  • Saint Barhélemy (BL)
  • Saint Martin (French Part) (MF)
  • Saint-Pierre and Miquelon (PM)
  • Wallis and Futuna (WF)
  • Georgia (GE)
  • Germany (DE)
  • Gibraltar (GI)
  • Greece (GR)
  • Guatemala (GT)
  • Hungary (HU)
  • Iceland (IS)
  • IIBAN (Internet) (AA)
  • Iran (IR)
  • Ireland (IE)
  • Israel (IL)
  • Italy (IT)
  • Jordan (JO)
  • Kazakhstan (KZ)
  • Kosovo (XK)
  • Kuwait (KW)
  • Latvia (LV)
  • Lebanon (LB)
  • Liechtenstein (LI)
  • Lithuania (LT)
  • Luxembourg (LU)
  • Macedonia (MK)
  • Madagascar (MG)
  • Mali (ML)
  • Malta (MT)
  • Mauritania (MR)
  • Mauritius (MU)
  • Moldova (MD)
  • Monaco (MC)
  • Montenegro (ME)
  • Mozambique (MZ)
  • Netherlands (NL)
  • Norway (NO)
  • Pakistan (PK)
  • Palestine (PS)
  • Poland (PL)
  • Portugal (PT)
  • Qatar (QA)
  • Romania (RO)
  • Saint Lucia (LC)
  • San Marino (SM)
  • São Tomé and Príncipe (ST)
  • Saudi Arabia (SA)
  • Senegal (SN)
  • Serbia (RS)
  • Seychelles (SC)
  • Slovakia (SK)
  • Slovenia (SI)
  • Spain (ES)
  • Sweden (SE)
  • Switzerland (CH)
  • Timor-Leste (TL)
  • Tunisia (TN)
  • Turkey (TR)
  • Ukraine (UA)
  • United Arab Emirates (AE)
  • United Kingdom (GB)

Support

Support github or mail: [email protected]

Contributing

Please try to follow the psr-2 coding style guide. http://www.php-fig.org/psr/psr-2/ t

License

This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!

iban's People

Contributors

tpweb avatar madeitbelgium avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.