Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Introducing MVC Frameworks in PHP Building an MVC Project Project Skeleton

If you need Slim-skeleton ver 3.*, use this command

Hey treehouse coders,

Since Slim updated to 4.4 in January 2020, the structure is drastically different to the one on tutorial. If you're like me, who'd prefer to follow the video closely and use Slim 3 type in the below command:

composer create-project slim/slim-skeleton:3.* [file_name]

~or~

composer create-project slim/slim-skeleton:3.1.6 [file_name] 

(v3.1.6 is more in tune with what is shown on video)

where [file_name] is your folder's name, or you can simply use "." to install in the folder you're in directly you'll get Slim 3.1 as well as other dependencies

1 Answer

Sasha Garcia
Sasha Garcia
7,100 Points

Thank you Chapman Cheng for the tip, got me unblocked today!