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


Lumen happened. It’s a shiny new micro-framework from Taylor Otwell, and it joins the Laravel family today. It looks to be a pretty nice framework, and it shares many of the same features and goals as Slim 3.0. I’m sure this raises a few question about Slim’s future roadmap.

Version 2.6.0

We’ve just released version 2.6.0. This update includes a small but important fix for a potential object injection vulnerability in the SessionCookie class. We encourage you to update your applications as soon as possible. This update also includes several other improvements. You can read more on the GitHub release page.

Slim Framework GitHub Organization

The Slim Framework code repositories have a new home in their very own GitHub Organization. As much as I’d like to keep the project beneath my own GitHub handle for the notoriety and what not, the project is best served with its own GitHub Organization. This solves several problems.

Older News

Subscribe with RSS

Mailing List

Don't have Twitter? Join our mailing list 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