PHP code example of wappr / digitalocean
1. Go to this page and download the library: Download wappr/digitalocean 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/ */
wappr / digitalocean example snippets
appr\digitalocean\Droplets;
use wappr\digitalocean\Requests\Droplets\CreateDropletsRequest;
$droplets = new Droplets;
$droplets->create(new CreateDropletsRequest('name', '512mb', 'nyc1', 'ubuntu-14-04-x64'));