PHP code example of oneso / ckonto

1. Go to this page and download the library: Download oneso/ckonto 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/ */

    

oneso / ckonto example snippets


# Set your account key
Ckonto::setKey("demo");

# Check bank account number and bank code
$bankCheck = Ckonto::checkBank(
    AccountNumber::fromNumber("76543210"),
    BankCode::fromCode("1234567890"),
    Sepa::getDefault()
)->check();

# Check iban and bic
$ibanCheck = Ckonto::checkIban(
    Iban::fromIban("DE07100500006603032331"),
    Bic::fromBic("BELADEBEXXX"),
    Sepa::getDefault()
)->check();

# Search
$search = Ckonto::search(
    BankCode::fromCode("1234567890"),
    Location::fromCity("Berlin"),
    Name::fromName("Postbank"),
    Zip::fromZip("123"),
    Max::getEmpty()
)->search();