# Slim Framework

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.

Repository: https://github.com/slimphp/Slim
Canonical: https://ross.abutalabs.com/products/slim-framework
Homepage: http://slimframework.com
Language: PHP
License: MIT
License Family: permissive
Topics: slim, slim-framework, php, php-micro-framework, framework, micro-framework, psr-7, psr-15, psr-3
Last push: 2026-08-26T16:30:37+00:00
Link (homepage): http://slimframework.com
Link (site_page): https://www.slimframework.com/docs/v4

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 73, longevity 100
- inputs: {"age_days": 5826, "days_push": 7, "days_rel": 103, "gap_med": 88, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12279, forks 1964 (observed 2026-08-28T04:10:52.248197+00:00)

## What it is
Slim is a PHP micro-framework for quickly writing simple yet powerful web applications and APIs. It provides a fast HTTP router, concentric middleware support, PSR-7 message handling, and PSR-11 dependency injection while staying minimal compared to full-stack frameworks.

## Use cases
- build a REST API in PHP
- create a small web application without a heavy framework
- rapidly prototype an HTTP endpoint
- add routing and middleware to a lightweight PHP project
- expose an API that publishes or consumes JSON data
- replace Laravel or Symfony for a minimal microservice

## When to choose
- you want a minimal, fast PHP framework with only routing and middleware
- you need PSR-7/PSR-15 compliance and freedom to pick your own components
- you are building small APIs, microservices, or prototypes
- full-stack frameworks like Laravel or Symfony feel like overkill

## When to avoid
- you need batteries-included features like ORM, auth scaffolding, or templating out of the box
- you are building a large monolithic application with complex conventions
- your team prefers an opinionated full-stack framework

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, http-server, routing, middleware
- domain: web-development, backend, apis
- platform: php, cross-platform
- tags: micro-framework, psr-7, psr-15, psr-11, rest-api, composer, web-server

## Member repositories
- slimphp/Slim (main) score 90
- slimphp/Slim-Skeleton (examples) score 29

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.248197+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:11.680772+00:00, confidence not recorded.
  - readme: https://github.com/slimphp/Slim (fetched 2026-08-28T04:10:52.248197+00:00, sha 7215b8a4378e)
  - homepage: http://slimframework.com (fetched 2026-08-29T08:11:31.828656+00:00, sha 78b0a1df1ad3)
  - site_page: https://www.slimframework.com/docs/v4 (fetched 2026-08-29T08:11:31.831227+00:00, sha 8595190711a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
