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 Laravel Basics Getting Started With Laravel Creating a Laravel Project

Elinor Armsby
Elinor Armsby
13,987 Points

Error installing laravel

Got this error: Cannot use laravel/laravel's latest version v6.0.0 as it requires php ^7.2 which is not satisfied by your platform.

I have PHP 8.2.12 on my localhost (xampp). How do I get past this issue?

1 Answer

Rachel Johnson
STAFF
Rachel Johnson
Treehouse Teacher

Hey Elinor Armsby , thanks for your post.

It looks like your Composer may be configured with the older version of PHP. You'll likely need to switch PHP versions used by Composer.

One method is to uninstall Composer and reinstall it. The new install, by default, should use the latest version of PHP on your machine or virtual environment (XAMPP).

There are methods to change the PHP version used by Composer as well, here are a few resources:

Do note that these resources may be for Windows or Mac. So you may need to adjust commands a little depending on your operating system.

I hope this helps!