# Installation
## System Requirements
* Web server with URL rewriting
* PHP 5.5 or newer
## How to Install Slim
We recommend you install Slim with [Composer](https://getcomposer.org/). Navigate into your project’s root directory and execute the bash command shown below. This command downloads the Slim Framework and its third-party dependencies into your project’s `vendor/` directory.
~~~
composer require slim/slim "^3.0@RC"
~~~
Require the Composer autoloader into your PHP script, and you are ready to start using Slim.
~~~
<?php
require 'vendor/autoload.php';
~~~
## How to Install Composer
Don’t have Composer? It’s easy to install. The following bash command downloads Composer and moves it into your `/usr/local/bin` directory.
~~~
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
~~~
- 概述
- Get Started
- Home
- Installation
- Upgrade Guide
- Web Servers
- Concepts
- PSR 7
- Middleware
- Dependency Container
- The Request
- The Response
- Routing
- Error Handling
- 500 Server Error
- 404 Not Found
- 405 Not Allowed
- Add Ons
- Templates
- HTTP Caching
- CSRF Protection
- Flash Messages
- Contributing
- Branching Strategy
- Guidelines