PHP code example of tpweb / iban

1. Go to this page and download the library: Download tpweb/iban library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tpweb / iban example snippets


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

TPWeb\Iban\IbanServiceProvider::class,

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

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

public function store(Request $request) {
    $this->validate($request, ['ibannumber' => '

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