mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* More doc updates, explanation of serverless. * Moved howto directory to examples and some minor doc updates. * Added apps and routes docs. * Fixes for Carlos' comments. * Added bit about importing lambda functions.
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";
|
|
}
|