2017 © Pedro Peláez
 

library deploybot-api

A simple PHP wrapper for the DeployBot API

image

jaybizzle/deploybot-api

A simple PHP wrapper for the DeployBot API

  • Friday, April 6, 2018
  • by JayBizzle
  • Repository
  • 2 Watchers
  • 19 Stars
  • 5,800 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

DeployBot API

Build Status StyleCI Total Downloads, (*1)

Installation

Add "jaybizzle/deploybot-api": "2.*" to your composer.json., (*2)

Older Versions

If you need to use this with older versions of PHP or Guzzle, then see the 1.0 branch, (*3)

Usage

You can read the official DeployBot API documention here - http://deploybot.com/api/, (*4)

All the DeployBot API endpoints can be called by prefixing the name with get e.g, (*5)

use Jaybizzle\DeployBot;

$db = new DeployBot('YOUR_API_KEY', 'YOUR_ACCOUNT_NAME');

// get all users
$users = $db->getUsers();

// get a specific user
$user = $db->getUsers(324);

Some DeployBot API endpoints can accept query string parameters, such as limit to limit the number of results returned. Taking the above users example, we can simply do this..., (*6)

$users = $db->limit(10)->getUsers();

These can also be chained..., (*7)

$users = $db->limit(10)->after(324)->getUsers();

Some more examples..., (*8)

//  list deployments for environment and limit results
$deployments = $db->environmentId(3452)->limit(10)->getDeployments();

// list repositories and limit results
$repositories = $db->limit(20)->getRepositories();

NOTE: Query parameters are listed in the DeployBot API docs as snake_case but we access them using camelCase methods so all method calls have a consistent naming convention, (*9)

The Versions

06/04 2018

dev-master

9999999-dev https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy

23/09 2016

v2.0.0

2.0.0.0 https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy

17/08 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy

14/08 2015

v1.0.2

1.0.2.0 https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy

12/08 2015

v1.0.1

1.0.1.0 https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy

11/08 2015

v1.0.0

1.0.0.0 https://github.com/JayBizzle/DeployBot-API/

A simple PHP wrapper for the DeployBot API

  Sources   Download

MIT

The Requires

 

The Development Requires

api deploy deploybot dploy