9951 explained code solutions for 126 technologies


php-laravelHow do I install Laravel using XAMPP and PHP?


  1. Make sure you have XAMPP and PHP installed on your local machine.
  2. Download the latest version of Laravel from the Laravel website.
  3. Unzip the downloaded file and move the extracted folder to the htdocs directory of your XAMPP installation.
  4. Open the php.ini file located in the xampp/php directory and enable the following extensions:
    • extension=php_openssl.dll
    • extension=php_mbstring.dll
    • extension=php_fileinfo.dll
  5. Open the command prompt and navigate to the laravel project directory.
  6. Run the following command to install the Laravel dependencies:
composer install
  1. Once the dependencies are installed, you can start the Laravel server by running the following command:
php artisan serve

Output example

Laravel development server started: <http://127.0.0.1:8000>

Edit this code on GitHub