Skip to content
PHP library for PlanetHoster API
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec/PlanetHoster basic tests Mar 14, 2019
src update SaveContactDetails Mar 15, 2019
.gitignore ignore test file Mar 12, 2019
.travis.yml add travis Mar 14, 2019
LICENSE fix name Mar 12, 2019 typo Mar 14, 2019
composer.json add travis Mar 14, 2019
composer.lock add travis Mar 14, 2019

PlanetHoster API Client

PHP library for PlanetHoster API

Build Status Latest Stable Version Total Downloads License


We recommend to install this library with composer. We support PHP 7.1 to 7.3.

To install composer follow the official documentation. The following command should also work:

curl -sS | php

To install the library, enter the following command in your PHP project directory:

composer require planethoster/planethoster-api

Or edit composer.json and add:

    "require": {
        "planethoster/planethoster-api": "^1.0"


Inspired by toin0u/DigitalOceanV2 design, we use Adapter interface to make the Http requests.

By default, we provide an adapter for Guzzle with GuzzleHttpAdapter.

You can also build your own by implementing the Adapter interface.



require __DIR__ . '/vendor/autoload.php';

use PlanetHoster\Adapter\GuzzleHttpAdapter;
use PlanetHoster\PlanetHoster;

// create an adapter with api_user and api_key
$adapter = new GuzzleHttpAdapter('your_api_user', 'your_api_key');

// create a PlanetHoster object
$planethoster = new PlanetHoster($adapter);

// Get your PlanetHoster account information
$infos = $planethoster->account()->Info();

// ...



Please open an issue in github


PlanetHoster API documentation

You can’t perform that action at this time.