Skip to content

mu-box/quickstart-slim

 
 

Slim from scratch

Slim from scratch

Run a Slim app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-slim.git

# cd into the slim app
cd nanobox-slim

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local slim.dev

# Run slim as you would normally, with Nanobox
nanobox run php-server

Check it out

Visit your app at slim.dev

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where slim is installed,
php -v

# your packages are available,
composer show

# and your code is mounted
ls

Now What?

For more details about running slim apps with nanobox visit guides.nanobox.io/php/slim/