Google News
logo
Laravel - Interview Questions
How do you install Laravel via composer?
The composer comes as a dependency manager. If it is not installed on your system, you can install it using this link.
 
After successfully installing the composer on your system, you need to create a project directory for your Laravel project. Later, you need to navigate the path where you have created the Laravel directory and run the following command:
composer create-project laravel/laravel --prefer-dist
This command will help install the Laravel in the current directory. If you want to start Laravel, run the following command.
php artisan serve
Laravel will get started on the development server. Now, run http://localhost:8000/ on your browser. The server requirement is as follows for installing Laravel.
 
* PHP >= PHP version 7.3 or above version
* OpenSSL PHP Extension
* PDO PHP Extension
* Mbstring PHP Extension
* Tokenizer PHP Extension
* XML PHP Extension
* Ctype PHP Extension
* JSON PHP Extension
BCMath PHP Extension
Advertisement