Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a new Laravel project in PhpStorm 2018.1?

How to create a new Laravel project in PhpStorm 2018.1 (in Ubuntu 16.04)?

like image 867
Farangis Rahmonaliyeva Avatar asked Jul 23 '18 12:07

Farangis Rahmonaliyeva


People also ask

Is PhpStorm good for Laravel?

This product works well with Symfony, Laravel, Drupal, WordPress frameworks, and front-end technologies like CSS3, JavaScript, TypeScript, VueJS, and React JS. PhpStorm is the perfect solution for any web application development project or website you might be working on.

What is laravel idea?

Laravel Idea is a development environment based on PhpStorm, focused on efficiency and productivity.


2 Answers

It's just a five step process,

Just go to File -> New Project and in the dialog specify project name and folder, and – most importantly – choose type Composer Project.

enter image description here

  1. Set Laravel project's folder & project name
  2. Choose "composer.phar" option button & tick "Download composer.phar from getcomposer.org"
  3. Select PHP Interpreter Version from drop down
  4. Select package as "laravel/laravel" from list
  5. Select PHP's version

Click on "Create" button. It will take time depending on your internet connection speed.

enter image description here

Congratulations, your new laravel project has been created.

enter image description here

like image 61
Lucifer Avatar answered Sep 22 '22 21:09

Lucifer


That's not a PhpStorm specific question. To create a new project you need to have composer installed

Composer Homepage

and be sure it's appended to your path.

echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc

To accept the changes, run

source ~/.bashrc

or logout and login again.

Then have a look at the Laravel documentation

Laravel

There are 2 possible ways:

  • Use composer directly
  • Use the Laravel installer

Both ways are fine, open the new created project in PhpStorm and you are good to go.

like image 39
Matz Avatar answered Sep 24 '22 21:09

Matz