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 Building Websites with PHP Slim Basics & Twig Templates Including & Running Slim

Carl Posthuma
Carl Posthuma
7,819 Points

Can i have more than one framework?

I am following along on a windows machine and using xampp. I have installed the laravel framework with composer. If i install the slim frame work would i have any sort of problems? also when installing slim i got the following message "Nothing to install or update" is this because all of the functionality of slim is already implemented in laravel? or did it not install correctly?

Thank you for your help :)

1 Answer

Kevin Korte
Kevin Korte
28,111 Points

Yes, you can have more than one framework and project set up on your computer. Each framework would be installed in the project's root directory using composer. So make sure you're inside the correct project's folder when you run your composer command. Slim and Laravel are completely separate from one another. Two different developers, two different syntax's, both written in php, and both written to more or less tackle the same problem. You'd have to look in your vendor directory or your package.json folder to see if Slim was included by composer.