2017 © Pedro Peláez
 

library transip-api

Generated API client

image

sam-it/transip-api

Generated API client

  • Thursday, May 4, 2017
  • by SamMousa
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

transip-api

A modern PHP client for the Transip API. This API client is automatically generated (see build.php) from the WSDL provided by TransIP., (*1)

The TransIP official API client does a couple of bad things: 1. It supports PHP5.3 and thus requires ugly workarounds. 2. It primarily uses static functons. 3. It does not support composer or autoloading., (*2)

This client does all that., (*3)

Example usage:

include 'src/vendor/autoload.php';


$factory = new \SamIT\TransIP\ServiceFactory([
    'login' => 'some-user',
    'password' => 'your-key-not-your-login-password'
]);


foreach ($factory->getHaipService()->getHaips() as $haip) {

    echo "{$haip->getName()} {$haip->getVpsName()}\n";
}

The factory (@see https://github.com/SAM-IT/transip-api/blob/master/src/generated/ServiceFactory.php) has getters for all services exposed by the API., (*4)

Installation

composer require sam-it/transip-api

Building

If you prefer to build your own classes require the dev dependencies use the build script for reference., (*5)

The Versions

04/05 2017

dev-master

9999999-dev

Generated API client

  Sources   Download

MIT

The Development Requires