2017 © Pedro Peláez
 

library drone-plugin-sdk

image

phpdrone/drone-plugin-sdk

  • Saturday, May 19, 2018
  • by gboddin
  • Repository
  • 2 Watchers
  • 1 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Drone PHP plugin SDK

This library faciliates the use of PHP to write drone plugins., (*1)

Example

An example plugin can be found and looked at in the example directory., (*2)

Documenation

See the generated API documenation., (*3)

Publishing

You need a docker hub account to publish your image., (*4)

docker push myhubid/plugin:0.1.2, (*5)

PHP example

<?php
require __DIR__."/vendor/autoload.php";

// Get the build :
$build = new \DronePluginSdk\Build();

// Get some settings :
var_dump($build->getPluginParameter('my_parameter'));

Output

[test:L0:0s] object(stdClass)#2 (5) {
[test:L1:0s]   ["a_boolean"]=>
[test:L2:0s]   bool(true)
[test:L3:0s]   ["also_a_bool"]=>
[test:L4:0s]   bool(true)
[test:L5:0s]   ["another_level"]=>
[test:L6:0s]   array(2) {
[test:L7:0s]     [0]=>
[test:L8:0s]     string(5) "item1"
[test:L9:0s]     [1]=>
[test:L10:0s]     string(5) "item2"
[test:L11:0s]   }
[test:L12:0s]   ["something"]=>
[test:L13:0s]   bool(true)
[test:L14:0s]   ["something_else"]=>
[test:L15:0s]   string(8) "probably"
[test:L16:0s] }

The Versions

19/05 2018

dev-master

9999999-dev

  Sources   Download

The Development Requires

01/03 2018

0.1.4

0.1.4.0

  Sources   Download