laravel is a php framework that can help us to wrete the code easily. There are two ways to install laravel, via composer, or via laravel installer.

Before install laravel, the server have to fullfill these requirement.

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • BCMath PHP Extension

lets, install laravel using composer.

  1. download and install composer just open https://getcomposer.org. Download it according to your OS type.
  2. Make sure that the composer have installed. Open Command Promt to check it. Type composer and wait for a minute. If the command promt show composer and composer version, it alreasy installed
  3. Get into your server directory
  4. Create the project using this command

           composer create-project --prefer-dist laravel/laravel blog
      5. To run the project, we must get into the project directory and use these command

 php artisan serve