PHP code example of planethoster / planethoster-api
1. Go to this page and download the library: Download planethoster/planethoster-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
planethoster / planethoster-api example snippets
lanetHoster\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();
// ...
bash
curl -sS https://getcomposer.org/installer | php