create laravel by composer code example Example: composer create project laravel 7 composer create-project --prefer-dist laravel/laravel:^7.0 blog