2017 © Pedro Peláez
 

library buyvm-stallion-api

image

splitice/buyvm-stallion-api

  • Wednesday, July 16, 2014
  • by splitice
  • Repository
  • 2 Watchers
  • 3 Stars
  • 164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

BuyVM Stallion API (PHP)

Build Status, (*1)

This is a PHP5 wrapper to easily integrate with BuyVM's Stallion control panel API., (*2)

Developed for use at www.x4b.net. Pull requests, features and patches welcome., (*3)

Requirements

You need PHP 5.3.2+ compiled with the cURL extension., (*4)

Install BuyVM Stallion API (PHP)

Installing via Composer

The recommended way to install the Stallion SDK is through Composer., (*5)

  1. Add splitice/buyvm-stallion-api as a dependency in your project's composer.json file:, (*6)

    {
        "require": {
            "splitice/buyvm-stallion-api": "dev-master"
        }
    }
  2. Download and install Composer:, (*7)

    curl -s http://getcomposer.org/installer | php
  3. Install your dependencies:, (*8)

    php composer.phar install
  4. Require Composer's autoloader, (*9)

    Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:, (*10)

    require 'vendor/autoload.php';

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org., (*11)

Examples

Here are some examples on how to do basic operations., (*12)

Setting Reverse DNS

$client = new ApiClient('KEY', 'HASH');
$api = new BuyVMApi($client);
$api->rdns('1.1.1.1', 'rdns-ptr');

Get VPS information

$client = new ApiClient('KEY', 'HASH');
$api = new BuyVMApi($client);
$memory = $api->get('mem');

The Versions

16/07 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

buyvm stallion

02/07 2014

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

buyvm stallion