What Is Slim framework? And what are the features of Slim Framework? - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
What Is Slim framework? And what are the features of Slim Framework?

What Is Slim framework? And what are the features of Slim Framework?

What Is Slim framework? And what are the features of Slim Framework?
What Is Slim framework?
Slim Framework is a PHP micro framework that helps you quickly PHP developers to write quickly and easily a powerful web application and APIs.  And slim is a dispatcher that receives an HTTP request to invoke an appropriate callback routing.

“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.
How does is work Slim framework?
A slim framework is a micro framework so first, you need a web server like Nginx or Apache. You instantiate and run you Slim app in the PHP file.


What are the features of Slim Framework?
The following features of the Slim Framework are:
  1. Routing – simple yet powerful routing that supports HTTP verbs like GET, POST, DELETE, and UPDATE. This allows you to design SEO friendly URLs
  2. Template rendering – built-in template rendering with a custom view. You can also use other templating systems such as twig
  3. HTTP Caching – let’s explain this with an example, every time a user access a resource on a web server, bandwidth is consumed depending on resources. Things like the favicon, CSS files don’t change frequently. HTTP caching allows you to tell the browser to keep the assets for some time and only request for resources that change. This improves the website’s performance and uses less bandwidth.
  4. Flash messages – things like validation failure, record added/updated messages need to be displayed once only then flashed. You get this out of the box with slim
  5. Secure cookies – slim uses AES-256 to encrypt cookies; this sinfully improves the security of your application and makes it harder for hackers to forge your cookies.
  6. Logging – this comes in handy when you want to record errors, warnings or info.
  7. Error handling and debugging – lets you define a custom error handler that is involved when things go wrong. The debug option lets your app decide whether to display the exception/error info or invoke a custom error handler when things go wrong
What is Advantages Of Opting Slim Framework
A slim framework is popular because of the following advantages:
  • Slim is the fastest micro RESTful framework
  • It is full PSR-7 complaint
  • It comes with useful classes for managing requests, responses, cookies, etc.
  • A slim framework has good documentation
  • It has excellent scalability
  • Is easy to learn
  • Slim uses easy and straightforward concept for its middleware
  • It supports code hooks

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.