1.

What is Slim framework and why it is used?

Answer»

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
2. Is Slim framework similar to Silex and how do they differ?

Slim and Silex are different because Slim is a micro framework, while Silex is a full-stack framework.

Slim and Silex are similar because they both help developers build web applications with simple tools for receiving a request and delivering a response.



Discussion

No Comment Found