修剪不会按预期显示。 我想在浏览器上显示“Hello,It's Nextflow”

The following code segment does not display Hello It's, Nextflow as I had intended.

<?php
require 'vendor/autoload.php';
use \Slim\App;
$app = new App;
$app->get('/hello/', function() {
   echo "Hello, It's Nextflow";
});
?>

You need to call run method on Slim application to make it work. Add the following code to the bottom of your code:

$app->run();

Full file will be:

<?php
require 'vendor/autoload.php';
use \Slim\App;
$app = new App;
$app->get('/hello/', function() {
   echo "Hello, It's Nextflow";
});
// Run application
$app->run();
?>