1

I'm working on a web project and have decided to use the Laravel framework due to its robust features and scalability. I've seen tutorials suggesting that Laravel can be installed using XAMPP and Composer on a Windows environment. Before diving in, I want to ensure that this approach is feasible and aligns with best practices.

From my understanding, XAMPP provides a local server environment that can host PHP applications, and Composer is used for managing PHP dependencies, which seems essential for Laravel projects.

What I've Done:

Watched several YouTube tutorials to grasp the installation process. Attempted to follow the steps provided, focusing on setting up XAMPP and Composer on my Windows machine. My Question: Is using XAMPP alongside Composer a recommended method for installing and running Laravel on Windows? If so, could you guide me through the process or direct me to comprehensive resources or videos that detail the setup step by step?

Thank you in advance for your assistance.

1 Answer 1

0

Well, as you've already seen from your search, XAMPP provides a local development environment that's able to host PHP applications during development stages, and it also ships with a built-in MariaDB server and a built-in Apache web server, and that's all about it.

Composer on the other hand is a tool that allows you to manage the dependencies for your PHP projects, and that's all about it.

Using these two software alongside each other is perfectly fine, I've done that for many years when I used to develop on Windows and had no issues at all.

Since you're using Laravel, I would suggest the following:

  • When you install XAMPP, it automatically installs a MariaDB server for you alongside a phpMyAdmin version, so I suggest you use XAMPP only for this purpose.
  • Laravel ships with a built-in web server (artisan) that's intended for development purposes, so I suggest you use that instead of the built-in Apache server that ships with XAMPP. You don't need to move your application inside the htdocs directory.

Of course, this is just the way I've been doing things for years, and there's no correct answer here really.

Sign up to request clarification or add additional context in comments.

4 Comments

thank you for your answer, when i saw the way of doing by xampp it will be easy even for my profesores to set it up as it is going to be my final year project.
@drogba Yes, you can do it the way you've seen it, you can put your entire project inside the htdocs folder of XAMPP and it will work fine. As I told you, there's no correct answer here really, you can do it the way you feel you're comfortable.
thank you for you responded. do you know any YouTube channels can help as i almost finished the frontend for the project will start the backend, so i want to know if there is any videos for like sign-up and signing etc..
@drogba I'm sorry, but I don't have any good suggestions here. However, the Laravel official documentation is pretty good at this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.