# Slim

Slim is a lightweight PHP micro-framework for quickly building simple yet powerful web applications and APIs. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5222/slim

## Description

Slim is a lightweight PHP micro-framework for quickly building simple yet powerful web applications and APIs. It ships with production-ready Docker images and an automatic installer, so developers can scaffold and run their PHP apps in containers with a minimal footprint, including ARM builds.

## Platform availability

Available on 0 of 10 platforms.

## Health score

63/100 (Good), based on 5 of 5 factors.
- Maintained: 76 (last commit 81 days ago)
- Popular: 82 (12,277 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Light to run: 40 (4 GB minimum RAM, runs on ARM)
- Security check: 68 (no serious findings, OpenSSF Scorecard 5.8/10)

## Links

- Docker Hub: https://hub.docker.com/r/shinsenter/slim
- Official website: https://code.shin.company
- GitHub: https://github.com/slimphp/Slim

## 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/5222/slim), the self-hosted and open-source app directory.
