Laravel Installation
After installing and configuring PHP development environment, there are two ways to install Laravel :
- Using Composer create-project
Open cmd (windows) or terminal (mac and linux) and the type :composer create-project laravel/laravel your-project-name --prefer-dist cd your-project-name php artisan serve
- Classic Download
Download .zip file from github, extract and open cmd or terminal from extracted directory. Run following command :composer install php artisan serve
- Laravel.phar
This installation method is introduced on version 4.. You have to download Laravel installer PHAR archive. Place it under/usr/local/bin
(for mac or linux) and rename it tolaravel
. Run following command :laravel new
orlaraval new awesomesite
to create new laravel installation underawesomesite
folder
Installation may takes some time to complete. After installation process is done, open http://localhost:8000
PS : php artisan serve is used to run local web server using PHP-CLI without running apache or nginx. It is very useful for development process :)
If you are upgrading from Laravel 4.0 to 4.1, please refer official documentation for detailed information