PHPackages                             nodeone/qbank3api-phpwrapper - 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. nodeone/qbank3api-phpwrapper

ActiveLibrary[API Development](/categories/api)

nodeone/qbank3api-phpwrapper
============================

A PHP-Wrapper for QBank 3's API. Provides a simple way to communicate with QBank 3 from PHP.

v1.3.0(9y ago)0334MITPHPPHP &gt;=5.4

Since Sep 12Pushed 8y ago14 watchersCompare

[ Source](https://github.com/nodeone/qbank3api-phpwrapper)[ Packagist](https://packagist.org/packages/nodeone/qbank3api-phpwrapper)[ RSS](/packages/nodeone-qbank3api-phpwrapper/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (74)Used By (0)

QBank 3 API PHP Wrapper
=======================

[](#qbank-3-api-php-wrapper)

[![Latest Stable Version](https://camo.githubusercontent.com/0bb04d7e319d45f980a6fb7a52e5d5eb21f53cfd67b78743a1496131c7527fa6/68747470733a2f2f706f7365722e707567782e6f72672f71626e6b2f7162616e6b336170692d706870777261707065722f762f737461626c652e737667)](https://packagist.org/packages/qbnk/qbank3api-phpwrapper)[![Latest Unstable Version](https://camo.githubusercontent.com/007378bd7047305df489031047a6a02f50f7cfe50ddb39ce33e27718a577cb87/68747470733a2f2f706f7365722e707567782e6f72672f71626e6b2f7162616e6b336170692d706870777261707065722f762f756e737461626c652e737667)](https://packagist.org/packages/qbnk/qbank3api-phpwrapper)[![License](https://camo.githubusercontent.com/d45a490ac22e76e61151a16a1e462780fb2559bf494eb770aa264b45c41cd513/68747470733a2f2f706f7365722e707567782e6f72672f71626e6b2f7162616e6b336170692d706870777261707065722f6c6963656e73652e737667)](https://packagist.org/packages/qbnk/qbank3api-phpwrapper)

Introduction
------------

[](#introduction)

QBank 3 API PHP Wrapper is a library that makes it easy to use the QBank 3 API directly from PHP. No need to handle the connections or interpreting the results yourself.

Installation
------------

[](#installation)

Install via composer.

```
{
	"require": {
		"qbnk/qbank3api-phpwrapper": "dev-master"
	}
}

```

Usage
-----

[](#usage)

This documentation presumes that you have a firm grasp of the concepts in QBank. If you do not or perhaps want a reference to lean on, please read the articles in the Knowledge Base for QBank. The Knowledge Base is found at: [support.qbank.se](http://support.qbank.se)

Instantiate the wrapper by creating a new `QBankApi`. The `QBankApi` class constructor takes three arguments of which two are required. The first is the URL to the api of the QBank you want to connect to. If the QBank is hosted by QBNK the domain of the QBank is sufficient; otherwise the full URL to the API endpoint is needed.

The second argument is a `Credentials` object which contains all necessary information to authenticate against QBank. These are as follows:

- Client id - A unique id used to identify the caller. Issued by QBNK and usually per organisation.
- Username - A username of a user in the QBank that you are connecting to. The access to content and actions are determined by this.
- Password - The users password.

To get a client id issued, please contact us at [support@qbank.se](mailto:support@qbank.se?subject=Request%20for%20API%20client%20id)

```
