bekodesign / versio-php-api
PHP implementation of the new Restfull Versio API
Requires
- php: >=7.0.0
- php-http/discovery: ^1.3
- php-http/guzzle6-adapter: ^1.1
- php-http/httplug: ^1.1
- php-http/message: ^1.6
Requires (Dev)
- phpunit/phpunit: ^5.0
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2024-11-24 03:14:31 UTC
README
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:
- Clone this repository
- 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: