Getting started with PHP

We speak PHP too! Enjoy the tools we built with you in mind.

Flying-roller

Make your first payment in seconds with bunq PHP Tinker

Just run this command to auto connect to sandbox! Switch to production by simply scanning a QR code.

bash <(curl -s https://tinker.bunq.com/php/setup.sh)			Click to copy!

Integrate easily via the bunq PHP SDK

1. Get Composer.

Click to copy!

2. Install the bunq PHP SDK.

Click to copy!
composer require bunq/sdk_phpClick to copy!

3. Create an API Context.

Click to copy!
$apiContext = ApiContext::create(
    BunqEnumApiEnvironmentType::SANDBOX(),
    $apiKey,
    'My First PHP bunq Implementation!'
);

BunqContext::loadApiContext($apiContext);Click to copy!

4. List monetary accounts.

Click to copy!
$monetaryAccountListing = MonetaryAccount::listing();
$monetaryAccounts = $monetaryAccountListing->getValue();
$monetaryAccount = $monetaryAccounts[0]->getMonetaryAccountBank();Click to copy!

5. List payments.

Click to copy!
$allPayment = Payment::listing(
    $monetaryAccount->getId()
);Click to copy!

6. Make a payment.

Click to copy!
Payment::create(
    new Amount('1.00', 'EUR'),
    new Pointer('EMAIL', 'receiver@example.com'),
    'Some money because you\'re awesome.',
    $monetaryAccount->getId()
);Click to copy!