mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
12 lines
307 B
PHP
12 lines
307 B
PHP
<?php
|
|
require 'vendor/autoload.php';
|
|
|
|
fwrite(STDERR, "--> this will go to stderr (server logs)\n");
|
|
stream_set_blocking(STDIN, 0);
|
|
$payload = json_decode(file_get_contents("php://stdin"), true);
|
|
if (isset($payload['name'])) {
|
|
echo "Hello ", $payload['name'],"!\n";
|
|
} else {
|
|
echo "Hello World!\n";
|
|
}
|