- PHP 8 (Version 8.4+)
Download PHP 8.4.4 - Composer (Version 2.8+)
Download Composer
- Download the PHP zip file from the link provided above.
- Rename your existing PHP folder (e.g.,
PHP7.4) to keep it as a backup. - Extract the downloaded PHP zip file to
C:\Program Files\and rename the folder toPHP8.4. - Add PHP to the system's environment variables:
- Open System Properties.
- Navigate to Advanced > Environment Variables.
- Under System Variables, select
Pathand click Edit. - Click New, then add
C:\Program Files\PHP8.4. - Click OK to save and apply changes.
- Run the Composer installation executable and follow the on-screen instructions.
- When prompted for the command-line PHP, select
C:\Program Files\PHP8.4. If it is not detected, use the Browse option to locate it. - Complete the installation with default settings.
-
Open a command-line terminal.
-
Run the following command:
composer --version
-
Expected output:
Composer version 2.8.6 2025-02-25 13:03:50 PHP version 8.4.4 (C:\Program Files\PHP8.4\php.exe) Run the "diagnose" command to get more detailed diagnostics output.
-
(Optional) Run the following command to check Composer’s full details:
composer -v
Expected ASCII output:
______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer version 2.8.6 2025-02-25 13:03:50
Congratulations! 🎉 Composer and PHP are successfully installed!
git clone https://github.com/AVC-Club/AVC-Websitecd AVC-Websitecomposer require slim/slim:"4.*"
composer require slim/psr7
composer require slim/php-viewphp -S localhost:8888 app.phpOpen your browser and visit:
http://localhost:8888
You should see the website running successfully!