_includes/code/manifest-for-helloPhp-2.yaml (14 lines of code) (raw):
packages:
default:
actions:
helloPHP:
code: |
<?php
function main(array $args) : array
{
$name = $args["name"] ?? "stranger";
$greeting = "Hello $name!";
echo $greeting;
return ["greeting" => $greeting];
}
runtime: php:7.3