Installation
System Requirements
- Web server with URL rewriting
- PHP 5.5 or newer
How to Install Slim
We recommend you install Slim with Composer.Navigate into your project’s root directory and execute the bash commandshown below. This command downloads the Slim Framework and its third-partydependencies into your project’s vendor/
directory.
composer require slim/slim "^3.12"
Require the Composer autoloader into your PHP script, and you are readyto start using Slim.
<?php
require 'vendor/autoload.php';
How to Install Composer
Don’t have Composer? It’s easy to install by following the instructions on their download page.