PHPackages                             link0/bunq - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. link0/bunq

ActiveLibrary[API Development](/categories/api)

link0/bunq
==========

PHP API client implementation for bunq

87913[8 issues](https://github.com/link0/bunq/issues)[5 PRs](https://github.com/link0/bunq/pulls)PHP

Since Jun 28Pushed 8y ago6 watchersCompare

[ Source](https://github.com/link0/bunq)[ Packagist](https://packagist.org/packages/link0/bunq)[ RSS](/packages/link0-bunq/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

link0/bunq
==========

[](#link0bunq)

[![Latest Stable Version](https://camo.githubusercontent.com/fc2cfa1c6b49aab5d5f0f6ced5bca6d6c7b5429cf415d17ed4ac98c015604161/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6b302f62756e712f762f737461626c652e737667)](https://packagist.org/packages/link0/bunq)[![Total Downloads](https://camo.githubusercontent.com/0b78080d4cbb219433b2f62c607f4f471ee8244e3db9a18cb89fdcf381ebfb42/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6b302f62756e712f646f776e6c6f6164732e737667)](https://packagist.org/packages/link0/bunq)[![License](https://camo.githubusercontent.com/74ee4e22dfe4c5c9fa1cb7df326dd6f3d4bd068b3502bd5e00ab1774d46a7013/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6b302f62756e712f6c6963656e73652e737667)](https://packagist.org/packages/link0/bunq)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/343a55312d3c65e807fc9e14fee3e7b5d6f91d6c2ebd6380b79e8bc1f90af89b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c696e6b302f62756e712f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/link0/bunq/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/2ed7129b72520a48a695bd669d992901ff447a33f93f6a90effde1c9b2b6c7bf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c696e6b302f62756e712f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/link0/bunq/?branch=master)[![Build Status](https://camo.githubusercontent.com/d52cb2830733c090c0822d6677e42e28e0fafee21064df0fe77fc15947a67076/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c696e6b302f62756e712f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/link0/bunq/build-status/master)

This library implements the [bunq API](https://doc.bunq.com).

Any feedback and testing is very welcome through issues and/or pull requests.

Basic usage
-----------

[](#basic-usage)

The following code example does a few things to get you started as fast as possible:

1. Create an InstallationServer
2. Create an DeviceServer
3. Retrieve a session from the SessionServer to be able to use the API

Before you copy/paste this code be sure you have an API key to use. When developing and testing the API you probably don't want to use the API key for production. Instead you want to use a developer API key. A developer API key can be obtained by asking the support desk from bunq itself (using the bunq app). Once you've got that API key you can fill it in into the `$apiKey` variable.

The function `registerInstallationAndDeviceServer()` is only supposed to be called once. After the first call you can comment this rule out.

```
