Slim Framework Open source · MIT
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
Introduction
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
## Features
- **HTTP Router**: Slim provides a fast and powerful router that maps route callbacks to specific HTTP request methods and URIs. It supports parameters and pattern matching.
- **Middleware**: Build your application with concentric middleware to tweak the HTTP request and response objects around your Slim app.
- **PSR-7 Support**: Slim supports any PSR-7 HTTP message implementation so you may inspect and manipulate HTTP message method, status, URI, headers, cookies, and body.
- **Dependency Injection**: Slim supports dependency injection so you have complete control of your external tools. Use any PSR-11 ContainerInterface implementation.
## Download & Install
We recommend you install the Slim Framework with the Composer dependency manager.
The easiest way to start working with Slim is to create a project using Slim-Skeleton as a base by running this bash command:
```bash
composer create-project slim/slim-skeleton [my-app-name]
```
Replace `[my-app-name]` with the desired directory name for your new application.
You can then run it with PHP's built-in webserver:
```bash
cd [my-app-name]; php -S localhost:8080 -t public
```
PHP frameworkMicro frameworkWeb APIsHTTP routerMiddlewarePSR-7Dependency injectionComposer
Screenshots

Deployment
Composer + Slim-Skeleton
适合按官方推荐快速创建 Slim 应用项目骨架并管理依赖。
PHP 内置 Web 服务器
适合本地开发或快速验证,通过 public 目录直接运行 Slim 应用。
Details
Type Open-source software
License MIT
Last verified 2026-07-18
In solutions
后端框架 · 10 candidates →Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.