Skip to content
Bert Kooij edited this page Aug 14, 2020 · 4 revisions

Versio PHP API

Official Versio API documentation: Documentation

Installation

Composer (recommended)

Installation through composer:

composer require BekoDesign\VersioAPI

Alternative

Download release.

Testing

This library is using PHP dotenv for enviroment variables. Since Versio is using Basic Auth and does not provide a demo account the tests need access to your full username and password.

In order to run the provided tests:

  1. Clone this repository
  2. Create a new .env file in the root of the repository with the following contents:
VERSIO_HOST=versio.nl
VERSIO_USERNAME={YOUR VERSIO USERNAME}
VERSIO_PASSWORD={YOUR VERSIO PASSWORD}

Replace {YOUR VERSIO USERNAME} and {YOUR VERSIO PASSWORD} with the credentials you use to sign in at https://www.versio.nl/login?uri=/customer/

You can also change the host to versio.uk, versio.nl, versio.be, versio.eu. But the default fallback is versio.nl.

Important: Please note that the testing API of Versio currently has an issue. The testing API is actually behaving like the real API and does create entities and makes payments. See #7 for more information.