mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* fnctl: improve UX for howto's * doc: go function howto * fnctl: show the progress of build calls * doc: php function howto * doc: fix Go HOWTO * doc: Node Functions HOWTO * doc: Python Functions HOWTO * doc: improve README files * doc: ccirello -> USERNAME * docs: fix Python example Used an idiomatic method (isatty) to decide whether stdin must be read or not. * doc: fix go example * fnctl: fix docker push output
11 lines
249 B
PHP
11 lines
249 B
PHP
<?php
|
|
require 'vendor/autoload.php';
|
|
|
|
stream_set_blocking(STDIN, 0);
|
|
$payload = json_decode(file_get_contents("php://stdin"), true);
|
|
if (isset($payload['name'])) {
|
|
echo "Hello ", $payload['name'],"!\n\n";
|
|
} else {
|
|
echo "Hello World!\n\n";
|
|
}
|