bekodesign/versio-php-api

PHP implementation of the new Restfull Versio API

1.0.0 2017-09-07 15:15 UTC

This package is not auto-updated.

Last update: 2024-04-14 00:07:20 UTC


README

Packagist Build Status GitHub tag License: MIT

Versio PHP API

This is a PHP library for the new rest API of Versio (Hostingprovider) as described here: https://www.versio.nl/RESTapidoc/.

This library can manage Domains, Reseller Hosting Accounts, WebHosting Accounts and SSL certificates as well as managing and viewing the Categories, TLDS and Products of Versio.

Installation

Composer (recommended)

Installation through composer:

composer require bekodesign/versio-php-api

Alternative

Download release.

Usage

Please reference the Wiki pages for the documentation.

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.

License

This project is released under the MIT License.

Issues

Please report any problems or suggestions via: GitHub issues

Contributors

Feel free to create a Pull Request.

Contributors: