Today I want to tell about another “trick” – or how to create a Laravel project without Command line or Terminal, directly from PhpStorm.
Just go to File -> New Project and in the dialog specify project name and folder, and – most importantly – choose type Composer Project.
Then you will see a new dialog, where you can basically choose any packages that you want Composer to download and install automatically. In this case we choose laravel/laravel (use auto-complete above), and then PhpStorm shows available versions on the bottom right, so we can specify which one we want.
Important things here – you have to specify path to php.exe executable on your computer (at the bottom) and you can also specify where you have composer.phar installed (at the top) – alternatively, it can be downloaded automatically by PhpStorm.
And, basically, that’s it – then PhpStorm downloads all the packages that you listed, then takes care of their dependancies and performs all other necessary operations. See comments at the bottom.
And then – the final result: ta-daaaaa!
So that’s it, another “well hidden” feature of PhpStorm. Laravel is only one way of using Composer project – you can specify more required packages with Laravel, or use your own different package list as a starting point.
[…] Daily have published a very nice article on PhpStorm: easily create new Laravel project – while it may be shameless self promotion in this JetBrains blog, it really is useful […]
It might be a good thing but how to do this on Linux Ubuntu 15.04?
This is way better than using composer 😛 Thanks for the tutorial and keep it up…
Since 2012 I am using Laravel for my projects and I just Love it !!! Thanks for sharing such information, Definitely I will try it on PhpStrom, previously I was using command terminal for Creating Laravel Project… Hope we will get more future tips like that….
Hi
I just want to start Laravel, can you help me? thank you
Thank you very much 😀 very better than composer (y)
When I tried running a laravel project that I created using your tutorial, I get this error:
PHP Fatal error: Class ‘Doctrine\Tests\DoctrineTestCase’ not found
Thanks. It works actually. 🙂
So what’s the story with the parameters given by default? Keep or chuck?
–no-install –keep-vcs –no-progress –no-interaction –ansi