Setup Slim Framework Application

slim

Slim :

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.

In this blog, I am going to show you how to setup application in that.

Download & Install :

Composer is the best way to install slim framework and create project using Slim-Skeleton as a base.

$ composer create-project slim/slim-skeleton {/path/to/app-directory}

It would create a directory in your path with the app name for example : (Slim/), You could see the public folder in your app (Slim/public) , make it your Document root in apache virtual host.

Then you could access the app in your browser (http://localhost/).

It would look like this

slim

You could see Router.php , Dependency.php , Middleware.php in the Slim/src/ folder, you can start your coding from that. For more details checkout the page

Tags: