Skip to main content
S

Slim

PHP micro framework for APIs

★ 4.1

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. PSR-7 compliant with middleware support.

12K
GitHub Stars
none
TypeScript
easy
Learning Curve
4.0
DX Score

Pricing

Model
free
Free Tier
MIT licensed, fully open source
Paid
N/A

Features

  • ✓ PSR-7 HTTP messages
  • ✓ PSR-15 middleware
  • ✓ Route groups
  • ✓ Dependency injection
  • ✓ Error handling
  • ✓ Content negotiation
  • ✓ Session handling
  • ✓ CSRF protection

Pros

  • + Lightweight and fast
  • + Easy to learn
  • + Great for APIs
  • + PSR compliant
  • + Minimal overhead

Cons

  • - No batteries included
  • - Manual assembly needed
  • - Limited ecosystem
  • - Small community

Best For

hobbyist startup

Alternatives

microframework api psr-7 lightweight