Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,148 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.