Slim 3.0 RC 2 has been released. Details here! Documentation is available here.

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

$app = new \Slim\Slim();
$app->get('/hello/:name', function ($name) {
    echo "Hello, $name";
Swag! We have some. Shop Now

Download & Install

We recommend you install the Slim Framework with the Composer dependency manager. Run this bash command in your project's root directory to download and install the latest stable version into your project's vendor/ directory.

composer require slim/slim

Next, require the Composer autoloader into your PHP application.

require 'vendor/autoload.php';

Not using Composer?

Download ZIP Archive



Slim provides a powerful router that maps route callbacks to specific HTTP request methods and URIs. It supports route segment parameters and pattern matching.


Build your application with custom concentric middleware to tweak the HTTP request and response objects before and after your Slim app runs.


Slim has easy-to-use request and response abstractions that let you inspect and manipulate HTTP messages' method, status, URI, headers, cookies, and body.


Slim provides first-class session support. It persists session data using industry standard encryption. Slim also enables "flash" messages across requests.


Slim provides helper methods that make client-side HTTP caching easier. It helps you work with the Expires, Last-Modified, and ETag headers.


Slim has super-secure cryptography using military-grade encryption. Slim uses your unique key to encrypt session and cookie data before persisting data to disk.

Latest News

Older News

Subscribe with RSS


Don't have Twitter? Join our newsletter and receive one email a week (at most) with the latest Slim Framework news, release announcements, and security updates. We hate spam, and we'll respect your inbox. You can unsubscribe at any time.

Email Archives

Chat on IRC

The official Freenode IRC channel is #slimphp. You can chat with other Slim Framework developers to share code or troubleshoot tricky issues. My nick is codeguy if you have questions or need assistance in the IRC channel.

Visit the IRC Channel

Read real-time IRC logs on

Follow @slimphp on Twitter