Slim is a PHP micro-framework that helps you quickly write simple yet powerful web applications and APIs.
It's recommended that you use Composer to install Slim.
$ composer require slim/slim "^3.0"
This will install Slim and all required dependencies. Slim requires PHP 5.5.0 or newer.
Create an index.php file with the following contents:
<?php
require 'vendor/autoload.php';
$app = new Slim\App();
$app->get('/hello/{name}', function ($request, $