phpdrone / drone-plugin-sdk
该包最新版本(0.1.4)没有提供许可证信息。
0.1.4
2018-02-28 23:03 UTC
This package is not auto-updated.
Last update: 2024-09-15 05:28:52 UTC
README
此库简化了使用PHP编写无人机插件的过程。
示例
示例插件可以在 示例 目录中找到并查看。
文档
请参阅 生成的API文档。
发布
您需要一个Docker Hub账户来发布您的镜像。
docker push myhubid/plugin:0.1.2
PHP示例
<?php require __DIR__."/vendor/autoload.php"; // Get the build : $build = new \DronePluginSdk\Build(); // Get some settings : var_dump($build->getPluginParameter('my_parameter'));
输出
[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] }