#2727th of 107 in Backend and cloud templates
slim
PHP micro-framework for routing and middleware in web apps and APIs
- Stars
- 12.3k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Sep 2026
- Language
- PHP
12,171 on 6 May 202612,285 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Slim is a PHP micro-framework that provides routing, PSR-7 request and response handling, and a middleware stack for small web apps and HTTP APIs. It is installed with Composer and works with several PSR-7 implementations, including Slim-Psr7, Nyholm, Guzzle, HttpSoft and Laminas. It has no AI features; it is a general backend base you would build on.
Who it is for: PHP developers building small HTTP APIs or backends
Strengths
- Installs with one Composer command; requires PHP 7.4 or newer
- Works with any of five PSR-7 implementations, auto-detected by AppFactory
- Runs under the built-in PHP server for quick local testing
- MIT licensed with a documented v4 and an active 4.x branch
Weaknesses
- No built-in AI, model or LLM integration; you wire that in yourself
- You must choose and install a PSR-7 implementation before it runs
- Micro-framework: no ORM, auth or templating included
- Minimum PHP 7.4 is stated; newer-version support is not documented in the README
What it needs
- PHP
- Needs PHP 7.4+, Composer, PSR-7 implementation
What changed
- 3.13.1 ↗ (opens in a new tab)Security fix
GHSA-V5C2-FF5F-P98X. “Security: Parse nested uploaded files in linear time by @akrabat in https://github.com/slimphp/Slim/pull/3487 (GHSA-v5c2-ff5f-p98x)”
- 4.15.3 ↗ (opens in a new tab)Security fix
GHSA-H377-P8X2-PRF9. “Security: Stop decoding route arguments twice to prevent route constraint bypass (GHSA-h377-p8x2-prf9)”
- 4.15.2 ↗ (opens in a new tab)Security fix
CVE-2026-48157, GHSA-53H4-8RC4-F539. “Security: CVE-2026-48157: Escape HTML entities in HtmlErrorRenderer to prevent XSS attacks (GHSA-53h4-8rc4-f539)”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 107| Rank | Project | Score |
|---|---|---|
| #25 | elysiaTypeScript web framework for Bun with end-to-end type safety | 78 out of 100 |
| #26 | playframeworkStateless, non-blocking web framework for Java and Scala applications | 78 out of 100 |
| #28 | powertools-lambda-pythonPython toolkit for AWS Lambda: logging, tracing, metrics, event handlers, idempotency | 78 out of 100 |
| #29 | javalinLightweight web framework for Java and Kotlin with WebSockets and HTTP/2 | 76 out of 100 |
| #30 | chiComposable HTTP router for Go REST services, built on net/http | 75 out of 100 |