Learning Laravel – Installation
[callaction url=”https://www.youtube.com/user/JPlaya01″ background_color=”#333333″ text_color=”#ffffff” button_text=”Go Now” button_background_color=”#e64429″]Subscribe To My Youtube Page[/callaction]
Getting Started Learning Laravel
So you have decided that learning Laravel is worth your time, GOOD FOR YOU! Now you have to go through the task of actually installing and configuring the software on your machine. If you use Laravel Homestead, then all of your system requirements are handled out of the box (I highly recommend this approach), if you choose not to use the VM, make sure your machine satisfies the following requirements:
- PHP >= 5.5.9
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
Laravel leverages Composer for all of it’s PHP dependency management. You may ask what is dependency management? Laravel utilizes a plethora of different components in order to make it function. It would be a nightmare if you as the developer is left in charge on managing all of these dependencies, with updates and patches and whatnot. This is where Composer comes in and makes your life pleasant. Composer keeps everything up-to-date, if a package requires other packages then Composer will handle all of the downloads. It’s like gem for Ruby or NPM for Node. If you don’t already have it installed it is quite easy, go to your command line and enter the following command.
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
This will install composer globally so you can just type
if you run into any errors, then try running with the
The first thing that we will do is install the Laravel installer with composer:
composer global require "laravel/installer"
Before you do anything else, make sure you put
~/.composer/vendor/bin in your PATH . Now you can start a new Laravel application by issuing the command
laravel new <app>
doing so will create a new Laravel app creating a folder in the process where is your application’s name.