What is Slim framework and why it is used?
A PHP micro-framework, Slim helps the developers write easy yet powerful APIs and web applications. This framework provides a fast and robust router that can map route callbacks to various HTTP requests and URIs.It supports PSR-7 HTTP message implementation which allows the developers to assess and manipulate HTTP message method, status, headers, URI, body, and cookies.
Uses of Slim Framework
- A quick way to write powerful APIs and web applications
- Allows you to map functions with URLs and methods
- Allow you to modify requests and responses.
- Developers have control over dependencies using Dependency Injection
BY Best Interview Question ON 30 Jan 2019