# slimphp/Slim

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/slimphp-slim).**

12,233 stars · 1,967 forks · PHP · mit

## Links

- GitHub: https://github.com/slimphp/Slim
- Homepage: http://slimframework.com
- awesome-repositories: https://awesome-repositories.com/repository/slimphp-slim.md

## Topics

`framework` `micro-framework` `php` `php-micro-framework` `psr-15` `psr-3` `psr-7` `slim` `slim-framework`

## Description

Slim is a PHP micro-framework designed for building web applications and APIs by routing incoming network requests to specific callback functions. It provides a lightweight foundation that emphasizes low memory overhead, allowing developers to construct backend systems by integrating only the necessary components.

The framework distinguishes itself through a middleware-based request pipeline and full support for standardized HTTP message interfaces. By utilizing these standard interfaces, the system enables modular application logic and ensures interoperability with a wide range of third-party libraries and extensions.

The core functionality includes regex-based route dispatching, a dependency injection container for managing service lifecycles, and a dedicated layer for exception-based error handling. These tools allow for the creation of structured web services that intercept and manipulate network traffic while providing consistent, formatted responses to the end user.

## Tags

### Web Development

- [Micro-frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/micro-frameworks.md) — Acts as a minimal framework for building lightweight web applications and APIs.
- [Lightweight Web Frameworks](https://awesome-repositories.com/f/web-development/lightweight-web-frameworks.md) — Provides a minimalist framework for building high-performance, low-overhead web applications and APIs. ([source](http://slimframework.com/docs/v4))
- [RESTful API Development](https://awesome-repositories.com/f/web-development/restful-api-development.md) — Provides a framework for building high-performance RESTful web services.
- [Request Middleware](https://awesome-repositories.com/f/web-development/request-middleware.md) — Provides tools for processing web messages using standard request and response interfaces.
- [Request Routing](https://awesome-repositories.com/f/web-development/request-routing.md) — Directs incoming network requests to appropriate handlers based on path matching. ([source](http://slimframework.com/docs/v4))
- [Request Dispatchers](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-request-handling/request-dispatchers.md) — Routes incoming network requests to specific callback routines for response generation. ([source](http://slimframework.com/docs/v4))
- [Regex-Based URL Dispatchers](https://awesome-repositories.com/f/web-development/routing-systems/routing/matching-algorithms/regex-based-url-dispatchers.md) — Maps incoming request paths to callback functions using regular expression patterns.
- [Modular Toolkits](https://awesome-repositories.com/f/web-development/web-applications/modular-toolkits.md) — Serves as a lightweight foundation for constructing high-performance services with modular extensibility.
- [HTTP Request Handling](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-request-handling.md) — Provides utilities for inspecting and manipulating incoming HTTP request data payloads. ([source](http://slimframework.com/docs/v4))

### Programming Languages & Runtimes

- [PHP Application Frameworks](https://awesome-repositories.com/f/programming-languages-runtimes/language-ecosystems-tooling/php-application-frameworks.md) — Provides a structured environment for routing PHP web requests to application logic.

### Networking & Communication

- [Middleware-Based Request Pipelines](https://awesome-repositories.com/f/networking-communication/communication-protocols-architectures/request-processing-architectures/request-processing/middleware-based-request-pipelines.md) — Implements a layered stack of decorators to process and modify network requests.
- [HTTP Request Abstractions](https://awesome-repositories.com/f/networking-communication/http-request-abstractions.md) — Supports standardized HTTP message interfaces to ensure interoperability with third-party middleware.

### Software Engineering & Architecture

- [Dependency Injection Containers](https://awesome-repositories.com/f/software-engineering-architecture/dependency-injection-containers.md) — Provides a central registry for managing service lifecycles and decoupling application components.
- [Error Handling Middleware](https://awesome-repositories.com/f/software-engineering-architecture/error-handling-middleware.md) — Intercepts application-level errors and maps them to standardized HTTP responses.
- [Application Error Handlers](https://awesome-repositories.com/f/software-engineering-architecture/error-handling/error-management/application-error-handlers.md) — Maps technical exceptions to user-friendly responses while logging details for debugging. ([source](http://slimframework.com/docs/v4))
- [Error Handling Workflows](https://awesome-repositories.com/f/software-engineering-architecture/error-handling-workflows.md) — Intercepts application exceptions during the request lifecycle to manage error responses.
- [Modular Extension Registries](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/third-party-service-connectors/built-in-integration-nodes/modular-extension-registries.md) — Allows registration of third-party libraries and modular extensions to augment core functionality. ([source](http://slimframework.com/docs/v4))
