Slim
Slim is a lightweight PHP micro-framework for quickly building simple yet powerful web applications and APIs.
Platform availability
Available on 0 of 10 platforms
- Unraid (not listed)
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
63/100 Good
- Maintained
- 76last commit 81 days ago
- Popular
- 8212,277 GitHub stars
- Easy to install
- 250 install platforms, install notes, Docker image
- Light to run
- 404 GB minimum RAM, runs on ARM
- Security check
- 68no serious findings, OpenSSF Scorecard 5.8/10
- GitHub stars
- 12,277
- Open issues
- 19
- Last commit
- 2026-09-01
- Latest release
- 4.15.3
- License
- MIT
- Activity
- stale
Checked 15 days ago - source: GitHub (slimphp/Slim)
Resources & Compatibility
Minimum requirements: 4 GB RAM, 1 GB disk. ARM (e.g. Raspberry Pi) is supported.
Checked 54 days ago - source: Docker Hub image tags and published docs
First-install notes
- Install Slim's PSR-7 package Run composer require slim/psr7 in your project folder; Composer is the tool that installs PHP packages. This gives Slim the standard request/response tools it needs, without which the app can't handle normal web traffic. source
- Start the test server from public/ Start PHP's built-in test web server from inside the project's public folder. This gives you a local address to open and confirm the app is working; running it from the wrong folder can make pages fail to load. source
- Set error handling for public use Add routing middleware before the error middleware, and turn off error details when your app is publicly available. If the order or setting is wrong, errors may not be caught properly or private error details can be shown to visitors. source
Fetched 53 days ago - each note links to its source
Variants
Alternatives
No alternatives collected yet.
Common questions
Which package do I need to install for Slim to handle normal web traffic?
Run composer require slim/psr7 in your project folder. This installs the PSR-7 package that gives Slim the standard request/response tools it needs.
Why might pages fail to load when using PHP's built-in test server?
Start the test server from inside the project's public folder. Starting it from the wrong folder can make pages fail to load.
What middleware order should I use for a public Slim app?
Add routing middleware before the error middleware so errors are caught properly.
How can I prevent visitors from seeing private error details?
Turn off error details when the app is publicly available.
Answers sourced from www.slimframework.com, www.slimframework.com, www.slimframework.com
Community
Collected 3 days ago - public community threads