Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introducing MVC Frameworks in PHP!
You have completed Introducing MVC Frameworks in PHP!
Preview
Step through the requirements for a Minimum Viable Product using the Slim Framework.
Slim Framework Documentation
Additional Courses
Setting up a Local Development Environment Dependency Management with Composer
.htaccess File
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
On the first page, they give us the bare
minimum needed to run a site with Slim.
0:00
This will be our minimum viable product.
0:01
Let's copy this code.
0:03
This code makes a few assumptions.
0:05
For example, that you already
have a functioning web server.
0:07
And you've installed the required
packages using Composer.
0:11
We'll be using MAMP for our web server.
0:14
If you need to install Composer or
0:17
MAMP, check the notes
associated with this video.
0:19
We'll walk through installing Slim and
running the project with MAMP.
0:22
We'll also walk through each
line of code from this example.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up