2017 © Pedro Peláez
 

library pack-api

Wrapper around Hipex hosting platform API

image

hipex/pack-api

Wrapper around Hipex hosting platform API

  • Monday, July 30, 2018
  • by Fgruntjes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,024 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 40 Versions
  • 65 % Grown

The README.md

EOL

This project is end of life and will no longer be maintained or updated. Please consider using https://platform-api.hipex.io/., (*1)

PackApi

Wrapper around Hipex hosting platform API. Have a look at https://www.hipex.io/. The better part of this library is generated from the File generated from https://service.hipex.io/hipex-pack-api GraphQL endpoint., (*2)

For a more extended documentation and API explorer please check out https://service.hipex.io/hipex-pack-api/docs/., (*3)

Installation

Any implementation of psr/log-implementation is required https://packagist.org/providers/psr/log-implementation. For Magento 2 monolog/monolog is already installed., (*4)

composer require hipex/pack-api

Usage

On first usage a login is required. This will store a token in your home directory (~/.hipex-console-auth) or if set a token file provided. After login you can call the queries and mutations. When calling queries without login first the API will just return without result or on mutations throw an exception., (*5)

Login, (*6)

$client = new \HipexPackApi\Client();
$client->login('info@example.com', 'password');

Call query / mutation In this example we will fetch a list of all servers and for each server we will fetch the domains on the server. There is a much more efficient way of making the same API call in GraphQL without using the API wrapper. For this have a look at the extended API documentation., (*7)

$servers = $client->queryServer();
foreach ($servers as $server) {
    $filter = new \HipexPackApi\Generated\Schema\Input\FilterInput();
    $filter->setField('server.id');
    $filter->value($server->getId());

    $domains = $client->queryDomain($filter);    
} 

Running GraphQL Query, (*8)

$query = '
query Server {
    Server {
        id
        name
        domains {
            id
            domain
            letsEncryptSsl
            backup
        }
    }
}
';
$serversAndDomains = $client->raw($query); 

Issues

For issues please include at least the following parts: - [ ] PHP version used - [ ] Code example reproducing the issue - [ ] Expected result of the code - [ ] Actual result of the code, (*9)

Versions

For version Semantic Versioning is followed (https://semver.org/). In short Given a version number MAJOR.MINOR.PATCH, increment the: 1. MAJOR version Backwards-compatible breaks. 2. MINOR version Added functionality in a backwards-compatible manner 3. PATCH version Bug fixes, (*10)

The Versions

30/07 2018

dev-master

9999999-dev

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/07 2018

v1.27.0

1.27.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/07 2018

v1.26.0

1.26.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

19/07 2018

v1.25.1

1.25.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

09/07 2018

v1.25.0

1.25.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

06/07 2018

v1.24.0

1.24.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

18/06 2018

v1.23.0

1.23.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

04/06 2018

v1.22.0

1.22.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

31/05 2018

v1.21.0

1.21.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.20.3

1.20.3.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.20.2

1.20.2.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.20.1

1.20.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.20.0

1.20.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.19.3

1.19.3.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.19.2

1.19.2.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

30/05 2018

v1.19.1

1.19.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

29/05 2018

v1.19.0

1.19.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

29/05 2018

v1.18.1

1.18.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

29/05 2018

v1.18.0

1.18.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

28/05 2018

v1.17.0

1.17.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

28/05 2018

v1.16.0

1.16.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.15.2

1.15.2.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.15.1

1.15.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.15.0

1.15.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.14.0

1.14.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.13.0

1.13.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.12.0

1.12.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.11.0

1.11.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

25/05 2018

v1.10.0

1.10.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

22/05 2018

v1.9.0

1.9.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

14/05 2018

v1.8.0

1.8.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

11/05 2018

v1.7.0

1.7.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

10/05 2018

v1.6.0

1.6.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

07/05 2018

v1.5.0

1.5.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

24/04 2018

v1.4.0

1.4.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

03/04 2018

v1.3.0

1.3.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

27/03 2018

v1.2.0

1.2.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

23/03 2018

v1.1.1

1.1.1.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

19/03 2018

v1.1.0

1.1.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes

28/02 2018

v1.0.0

1.0.0.0

Wrapper around Hipex hosting platform API

  Sources   Download

GPL-3.0

The Requires

 

by Freek Gruntjes