2017 © Pedro Peláez
 

library client

Platform.sh API client

image

platformsh/client

Platform.sh API client

  • Friday, June 15, 2018
  • by Crell
  • Repository
  • 9 Watchers
  • 11 Stars
  • 30,110 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 9 Forks
  • 3 Open issues
  • 100 Versions
  • 12 % Grown

The README.md

Platform.sh API client

This is a PHP library for accessing the Platform.sh API., (*1)

We recommend you use the Platform.sh CLI (which uses this library) for most purposes., (*2)

Build Status, (*3)

Install

composer require platformsh/client

Usage

Example:, (*4)


use Platformsh\Client\PlatformClient; // Initialize the client. $client = new PlatformClient(); // Set the API token to use. // // N.B. you must keep your API token(s) safe! $client->getConnector()->setApiToken($myToken, 'exchange'); // Get the user's first project. $projects = $client->getProjects(); $project = reset($projects); if ($project) { // Get the default (production) environment. $environment = $project->getEnvironment($project->default_branch); // Create a new branch. $activity = $environment->branch('Sprint 1', 'sprint-1'); // Wait for the activity to complete. $activity->wait(); // Get the new branch. $sprint1 = $project->getEnvironment('sprint-1'); }

The Versions

15/06 2018

dev-master

9999999-dev

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

16/05 2018

2.0.0-beta.5

2.0.0.0-beta5

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

13/04 2018

2.0.0-beta.4

2.0.0.0-beta4

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

04/04 2018

2.0.0-beta.3

2.0.0.0-beta3

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

12/02 2018

2.0.0-beta.2

2.0.0.0-beta2

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

20/12 2017

2.0.0-beta.1

2.0.0.0-beta1

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires

14/11 2017

2.0.0-beta.0

2.0.0.0-beta0

Platform.sh API client

  Sources   Download

MIT

The Requires

 

The Development Requires