Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Slim Framework

< >

Slim Framework is a framework created in 2013.

#697on PLDB 11Years Old
Download source code:
git clone https://github.com/slimphp/Slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.


Example from the web:
<?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('/hello/{name}', function (Request $request, Response $response, array $args) { $name = $args['name']; $response->getBody()->write("Hello, $name"); return $response; }); $app->run();

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io