laravel installation tutorial Thumbnail

In this post, we'll see how to install or create Laravel application using Composer.


  • PHP
  • Composer
  • An OpenSSL extension for PHP
  • A PDO extension for PHP
  • Mbstring extension for PHP
  • Tokenizer extension for PHP
  • XML extension for PHP

For PHP you can use all-in-one packages like XAMPP or WamppServer. If you need any help please check this links XAMPP Installation Guide or WamppServer Installation Guide.

Laravel implements a composer for managing dependencies within it. Hence, before the use of Laravel, it needs to check whether you have a composer setup on your system or not.

If you don't have composer installed in you system, first visit URL below to download composer and install it on your system.

After installing composer go to command prompt and and type composer. if it produce following output then you have installed composer successfully.

Setup Laravel using installer

After installing composer you have to download installer of Laravel using composer. For that go to command prompt and enter following command.

        composer global require "laravel/installer"

When the installation is done, a new command of Laravel will start a new fresh installation in that directory you provide.

        laravel new projectname

The command mentioned above will make Laravel installed on that specific directory. To run application navigate to projectname folder and give next command which is below.

        php artisan serve

Above command will start Laravel application and shows message like Starting Laravel development server: URL and paste into your browser and it will display following output.


In above example, we have created new Laravel application using composer by few commands. Now, you are ready to create excellent web application using Laravel.

Share your thoughts

Ask anything about this examples