phpdrone/drone-plugin-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpdrone/drone-plugin-sdk

Composer 安装命令:

composer require phpdrone/drone-plugin-sdk

包简介

README 文档

README

This library faciliates the use of PHP to write drone plugins.

Example

An example plugin can be found and looked at in the example directory.

Documenation

See the generated API documenation.

Publishing

You need a docker hub account to publish your image.

docker push myhubid/plugin:0.1.2

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] }

统计信息

  • 总下载量: 298
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固