Getting started with PHP

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


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			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(
    '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(
);Click to copy!

6. Make a payment.

Click to copy!
    new Amount('1.00', 'EUR'),
    new Pointer('EMAIL', ''),
    'Some money because you\'re awesome.',
);Click to copy!