How to install laravel in ubuntu

Laravel is one of the popular PHP frameworks now. There are many ways to install the laravel framework. But we will be discussing two of them, which are very easy and are widely used.

  • Laravel Installer
  • Composer

Before starting the laravel setup process, make sure that your server meets the following requirements.

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Laravel uses Composer to manage its dependencies. So, before installing Laravel, you have to install the Composer in your server.

Laravel Installer

Following is the command to install `Laravel Installer` using composer

 composer global require "laravel/installer"  

Place the $HOME/.composer/vendor/bin the directory in your $PATH for laravel executables.
Use the following command to create a project using Laravel Installer

 laravel new blog  

 

Composer

Following is the command to create the project using composer

 composer create-project --prefer-dist laravel/laravel myappname  

Sarav Author

Comments

  • saga

    (June 22, 2018 - 12:19 pm)

    This does interest me

Leave a Reply to saga Cancel reply

Your email address will not be published. Required fields are marked *