Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Psr\Http\Message\ResponseInterface as Response;
- use Psr\Http\Message\ServerRequestInterface as Request;
- use Slim\Factory\AppFactory;
- require __DIR__ . '/../vendor/autoload.php';
- $app = AppFactory::create();
- $app->get('/', function (Request $request, Response $response, $args) {
- $response->getBody()->write("Hello world!");
- return $response;
- });
- $app->run();
Advertisement
Add Comment
Please, Sign In to add comment