Take care: This article is maybe outdated or at least a bit neglected. It hasn't been updated for a while.

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

For best results here, make sure you have completed all steps from the get ready guide.

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}}.frbit.com:{{app-name}}.git

# 7. Initial push and upstream
$ git push -u fortrabbit master
# That's it.

# 8. From there on only
$ git push

You can see the welcome page in the browser: https://{{app-name}}.frb.io/

Further reading

Craft CMS

Install guides

Develop & deploy





Tips & tricks

Need individual help?
Learn about Company plans ›
Looking for an old article?
See the full list of articles ›
Found an error?
Contribute on GitHub ›