Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
At its core, Slim is a dispatcher that receives an HTTP request, invokes an appropriate callback routine, and returns an HTTP response. That’s it.
A Slim app contains routes that respond to specific HTTP requests. Each route invokes a callback and returns an HTTP response. To get started, you first instantiate and configure the Slim application. Next, you define your application routes. Finally, you run the Slim application.
This is free and open source software.
Key Features
- HTTP Router – provides a fast and powerful router that maps route callbacks to specific HTTP request methods and URIs. It supports parameters and pattern matching.
- Middleware – build your application with concentric middleware to tweak the HTTP request and response objects around your Slim app.
- PSR-7 support – supports any PSR-7 HTTP message implementation so you may inspect and manipulate HTTP message method, status, URI, headers, cookies, and body.
- Dependency injection – supports dependency injection so you have complete control of your external tools. Use any PSR-11 ContainerInterface implementation.
Website: www.slimframework.com
Support: GitHub Code Repository
Developer: Josh Lockhart
License: MIT License
Slim is written in PHP. Learn PHP with our recommended free books and free tutorials.
Related Software
| Best PHP Micro Frameworks | |
|---|---|
| Slim | Helps you quickly write simple yet powerful web applications and APIs |
| Symfony | Set of reusable PHP components |
| Flight | Fast, simple, extensible framework for PHP |
| Fat-Free | Powerful yet easy-to-use PHP micro-framework |
| Leaf | Slim and lightweight PHP framework |
| OpenSwoole | Programmatic platform building modernized systems |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

