- Forums
- laravel
- How To Upgrade PHP In Windows With XAMPP For Composer And Laravel
How To Upgrade Php In Windows With Xampp For Composer And Laravel [5034], Last Updated: Mon Jun 24, 2024
ed
Tue Dec 20, 2022
0 Comments
349 Visits
To upgrade your current PHP to the lastest PHP version using XAMPP, Follow these simple steps:
- Donwload and Install XAMPP
- Setup you Environment Variables PATH to the new php.exe file in XAMMP. (example: c:\xampp\php)
- Be sure to remove older PHP Environment Variables PATH
- Open the terminal and check the version you are running: > php -v
- This was the output I got:
PS C:\Users\15t> php -v
PHP 8.1.12 (cli) (built: Oct 25 2022 18:16:21) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
PS C:\Users\15t>
These instructions helped me find my solution: https://stackoverflow.com/a/68194088
Done.