Install Laravel On Mac Xampp

  1. How To Install Xampp Windows
  2. Xampp Control Panel Mac
  3. Installing Laravel On Mac Xampp
  4. Install Xampp For Windows 10
  5. How To Install Laravel On Mac Using Xampp

In this tutorial we will install Laravel in our local machine using composer and Xampp. Before that lets know about Laravel Composer and Xampp in short. If you know about them then just jump to the installation section.

What is Laravel ?

I have trouble to install the laravel framework on xampp. Question: i try here to install xampp to mac os x. I get this back: after which php i get this /usr/bin/php but i need t.

  • Step 3: After installation above all tools, now you can install Laravel on to your system using the below mentioned commands and by-default it will fetch the latest version of Laravel. Composer create-project laravel/laravel laravel-webner-test.
  • If you're developing on a Mac and Docker Desktop is already installed, you can use a simple terminal command to create a new Laravel project. For example, to create a new Laravel application in a directory named 'example-app', you may run the following command in your terminal: curl -s ' bash.
  • How to install Laravel 8 on Windows with XAMPP. Installing Laravel 8 on Windows is very easy. However, before we can enjoy the new version of Laravel, we have to make sure that our system is compatible and meets the following requirement.

Laravel is a web application framework with expressive, elegant syntax. A web framework provides a structure and starting point for creating your application, allowing you to focus on creating something amazing while we sweat the details. (from Laravels Docs)

You can use Laravel as full-stack framework or backend only. It is an open source framework with great community support. At this point it is most popular PHP framework. So lets create something awesome with Laravel.

What Is Composer ?

Composer is dependency manager a tool for PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for your project . It helps us installing/updating various requirements/components for our app such as Laravel framework, Doctrine, Lodash and some other too.

How To Install Xampp Windows

What is Xammp

XAMPP is an abbreviation for cross-platform, Apache, MySQL, PHP and Perl, and it allows you to build Web applications offline, on a local web server on your computer. This simple and lightweight solution works on Windows, Linux, and Mac – hence the “cross-platform” part. Its main job is to serve the project and also manage the local database connection.

Here I will discuss how you can set-up Laravel development environment and run Laravel in your local machine in best way.

Step 1 : Install Composer

to install composer in windows 10 or any other windows machine visit or click this for windows machine install by opening the downloaded file and set the PATH environment variable so you can simply call composer from any directory That is the PHP directory (I assumed You have installed PHP in your machine to check just open terminal and type php -v it will print php version installed on your system if not you need to install php first.

now open terminal in any directory and type composer -v and hit enter. if yo see something like below image the congratulations you have installed composer successfully.

Step 2 : Install Xampp

To download Xampp in your machine visit and choose installer file compatible with your operating system and install it.

Stem 3 : Create New Laravel Project

If you have installed both composer and Xampp properly the you are ready to create fresh new Laravel project.

Navigate you directory where you want to create the project and open terminal in that directory or you can cd to that directory and run this command

with name of your project and it will starts to download all the necessary files on that directory.

Now you have installed A fresh new Laravel project now move to the project directory with command

and then run

and open Xampp and start Apache and MYSQL service and after the server started visit you will see Laravel's welcome page.

In Addition you can also install Laravel installer globally using composer using the command

and after that you can use short command

from anywhere in your system.

hope you get something useful. If you have any questions, let me know in the comment. Thanks.

Hey guys ,I just started using Laravel for my Agile development work 😛

Here is procedure to install laravel on windows.Post comment if you have any problems.

Step1: Download and Install either xampp or wamp on windows

Xampp Control Panel Mac

Google for downloading there setup ~ around 100 MB

Step2: After installing Xampp or wamp, download composer

Link to composer installer direct link

Download it and install.After that Log out of your account and log in again.

Open Cmd and type composer.

If you get something after that like this ,then its installed and working correctly.

Installing Laravel On Mac Xampp

/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
Composer version 31eadc6920cd1866bc061fb0087798c37e2b7d14 2014-09-25 17:49:51

[options] command [arguments]

–help -h Display this help message.
–quiet -q Do not output any message.
–verbose -v vv vvv Increase the verbosity of messages: 1 for normal ou
tput, 2 for more verbose output and 3 for debug
–version -V Display this application version.
–ansi Force ANSI output.
–no-ansi Disable ANSI output.
–no-interaction -n Do not ask any interactive question.
–profile Display timing and memory usage information
–working-dir -d If specified, use the given directory as working directory

Step3: Now to go your www directory if wamp installation or htdocs if xampp installation.

Create New folder named Laravel or name it whatever you like.

Open cmd prompt at that location.Use this trick if your are on windows 7 ..Hold Shift and then Right click in that directory

You will see Open command prompt here. 🙂


Now type following command

Install Xampp For Windows 10

This will download required all packages and dependency and all stuff for laravel to run.

Download will be around 16 MB so it will take time.

How To Install Laravel On Mac Using Xampp


Step4:Start xampp or wamp.

Go to Folders if xampp

htdocs->laravel->public i.e localhost/laravel/public

if wamp

www->laravel->public i.e localhost/laravel/public

If no error its done.

Now there one more long method which requires lot of stuff to download , but more safe and better.I will post regarding how to setup laravel with virutalbox and vagrant , Laravel Homestead.Stay tuned 😛