Install Slim Framework 3

Slim is a PHP micro framework that helps you write simple web applications and APIs quickly. Learn how to install and tune Slim 3 on fortrabbit.

Get ready

We assume you've already created a new App. If not: You can do so in the fortrabbit Dashboard.

Root path

Go to the Dashboard and set the root path of your App's domains to public.

Change the root path for App URL of App: {{app-name}}


Execute locally in your terminal:

# 1. Use Composer to create a local Symfony project named like your App
$ composer create-project slim/slim-skeleton {{app-name}}

# 2. Change into the folder
$ cd {{app-name}}

# 3. Initialize a local Git repo
$ git init .

# 4. Add all files
$ git add -A

# 5. Commit files for the first time
$ git commit -m 'Initial'

# 6. Add fortrabbit as a remote
$ git remote add fortrabbit {{ssh-user}}@deploy.{{region}}{{app-name}}.git

# 7. Push changes to fortrabbit
$ git push -u fortrabbit master

That's it. You can see the welcome page in the browser: https://{{app-name}}

Further readings

Search help pages

Need individual help?

Get support › Learn about Company plans ›

Looking for an old article?

See the full list of articles ›

Found an error?

Contribute on GitHub ›