PHP Laravel how to install laravel in windows with xampp | how to install laravel 5



Community Tested

Why choose wikiHow?
When you see the green checkmark on a wikiHow article, you know that the article has received careful review. In this case, we tested the instructions on our own devices and confirmed that the instructions worked.

How to Install Laravel Framework in Windows

Five Parts:

This wikiHow teaches you how to install the Laravel framework for your PHP client on a Windows computer.

Steps

Installing XAMPP

  1. Open the XAMPP download page.Go to in your computer's web browser.
  2. Scroll down to the "7.2.8 / PHP 7.2.8" heading.You'll find it near the bottom of the list of downloads.
    • This is important; since Laravel requires PHP 7.13 or higher, you'll need to make sure you don't accidentally install an older version of XAMPP.
  3. ClickDownload (32 bit).It's a blue button to the right of the "7.2.8 / PHP 7.2.8" heading. This will download the XAMPP setup file onto your computer.
  4. Open the XAMPP setup file.Double-click the downloaded setup file to do so.
  5. Click when prompted.This will open the XAMPP setup window.
  6. Navigate through the XAMPP setup process.Click through the XAMPP menus by doing the following:
    • ClickNextthree times.
    • Uncheck the "Learn more about Bitnami for XAMPP" box.
    • ClickNexttwice.
  7. ClickFinishwhen prompted.This will open the XAMPP language preferences pop-up window.
  8. Click when prompted.Doing so will save your default language settings and open the XAMPP dashboard.
  9. Start Apache.ClickStartto the right of each of the "Apache" heading. This will turn on Apache. At this point, you're ready to install Composer.
    • You can also do the same with the "MySQL" heading, but you'll need to in order to do so.

Installing Composer

  1. Open the Composer website.Go to in your computer's web browser.
  2. Select the Composer download link.Click theComposer-Setup.exelink near the top of the page.
  3. Open the downloaded Composer setup file.Double-click the "Composer-Setup" file to do so.
  4. Click when prompted.This will open the Composer installation window.
  5. Click .It's at the bottom of the window.
  6. Select XAMPP if necessary.If you have multiple different command line-based PHP options installed on your computer, click the one listed in the drop-down box at the top of the window, then clickC:\xampp\php\php.exein the drop-down menu.
  7. Click twice.This option is at the bottom of the menu.
  8. ClickInstall.It's at the bottom of the window. Composer will begin installing.
  9. ClickFinishwhen prompted.Doing so signifies that Composer has been installed successfully.

Activating Composer

  1. Open Start .Click the Windows icon in the bottom-left corner of the screen.
  2. Search for Command Prompt.Type incommand promptto do so.
  3. Right-click Command Prompt.You should see it appear at the top of the Start window. A drop-down menu will appear.
  4. ClickRun as administrator.It's in the drop-down menu.
  5. Click when prompted.Doing so opens Command Prompt with administrator privileges.
  6. Enter the Composer validation command.Type inphp composer.pharand pressEnter.
  7. Wait for Composer to finish updating.Once the update completes, you can proceed with .
    • If you receive an error when you run the "php composer.phar" command, you'll need to before you proceed with installing Laravel.

Installing Composer Manually

  1. Close Command Prompt.If the last attempt to install Composer didn't work, you can use a PHP script in Command Prompt to manually install Laravel.
  2. Copy the installation script.Select the entire script in the code box below, then pressCtrl+Cto copy it.
    php r"copy('https://getcomposer.org/installer', 'composer-setup.php');" php r"if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composersetupphp php r"unlink('composer-setup.php');"
  3. Re-open Command Prompt.Doing so ensures that Command Prompt won't return any errors due to other commands interfering with your script.
  4. Paste in the script.PressCtrl+Vto add the script to Command Prompt. The script will automatically begin running.
  5. Remove the installer once the installation is complete.Simply pressEnteronce you see the "php -r "unlink('composer-setup.php');"" line appear to do so.
  6. Re-run the Composer command.Type the following into Command Prompt, then pressEnter:
    php composerphar

Installing Laravel

  1. Close and re-open Command Prompt.Doing so ensures that you don't have any interference from past commands.
  2. Enter the Laravel installation command.Type incomposer global require "laravel/installer"and pressEnter. Laravel will immediately begin to install.
  3. Wait for Laravel to install.Once Laravel finishes installing, you'll see the regular Command Prompt tag (e.g., "system32>") appear below the list of commands. At this point, you can begin using Laravel as needed.

Community Q&A

Search
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
  • Laravel can be accessed with thephp artisancommand in Command Prompt.

Warnings

  • Due to Laravel's dependency on up-to-date PHP, you may have to update XAMPP more often than you did previously.

Related wikiHows

Article Info

Categories:

Thanks to all authors for creating a page that has been read 285,491 times.
Is this article up to date?
Tested By:
wikiHow Technology Team

of How to Install Laravel Framework in Windows was reviewed on August 14, 2019.

How helpful is this?
Co-authors:
Updated:
Views: 285,491

Raju KSN

Aug 16, 2019

"Simple and helpful.





Video: Laravel 5.6 Tutorial : Install on Windows using XAMPP

How to Install Laravel Framework in Windows
How to Install Laravel Framework in Windows images

2019 year
2019 year - How to Install Laravel Framework in Windows pictures

How to Install Laravel Framework in Windows recommend
How to Install Laravel Framework in Windows recommend photo

How to Install Laravel Framework in Windows picture
How to Install Laravel Framework in Windows pics

How to Install Laravel Framework in Windows How to Install Laravel Framework in Windows new pictures
How to Install Laravel Framework in Windows new foto

images How to Install Laravel Framework in Windows
foto How to Install Laravel Framework in Windows

Watch How to Install Laravel Framework in Windows video
Watch How to Install Laravel Framework in Windows video

Communication on this topic: How to Install Laravel Framework in Windows, how-to-install-laravel-framework-in-windows/
Discussion on this topic: How to Install Laravel Framework in Windows, how-to-install-laravel-framework-in-windows/ , how-to-install-laravel-framework-in-windows/

Related News


How to Share a Room With a Younger Boy Sibling when Youre a Girl
I Let My Husband Dress Me for a Week
Tag: Gray Hair Color
How to Find Out if You Have Been Restricted on Facebook
Instagram Insta-Glam: FrenchBraids
Down Syndrome: What It Is and the Different Types
The Perfect Gift For Lovers Of Sake, Photography and History
Facials For Men: Can They Make You Better Looking
This Colour Dominated The Best Dressed Men Of Paris Fashion Week
How to Take Your Cardio Workout to New Heights
How to Curl Hair With Toilet Paper
This Popular NYC Facial Might Just Replace Botox
3 Things Happy Couples Do Together On the Regular



Date: 07.12.2018, 21:01 / Views: 55531