PHP micro framework for small web applications and APIs
open sourceMITfree
Slim is a PHP micro framework for writing web applications and APIs. It gives you a fast router that maps HTTP methods and URIs to callbacks, concentric middleware around the request and response, any PSR-7 HTTP message implementation and any PSR-11 dependency injection container. A new project starts from the Slim-Skeleton template with Composer.
Problems it solves
- build a small JSON API in PHP without a full-stack framework
- route HTTP requests to PHP functions with middleware
- start a lightweight PHP web app with my own choice of container and HTTP library
Features
- HTTP router with route parameters and pattern matching
- concentric middleware around requests and responses
- works with any PSR-7 HTTP message implementation
- works with any PSR-11 dependency injection container
- Slim-Skeleton project template
Limitations
- Slim 4 requires PHP 7.4 or newer.1
Alternatives
The same job
These do what Slim does.
- CodeIgniter The small framework with powerful features
