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
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.
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
Following is the command to create the project using composer
composer create-project --prefer-dist laravel/laravel myappname