I want to manage all my events on a calendar and want to have all the information on one place on a website. What should I do? I think, I will use jQuery FullCalendar for it. If I am using WordPress, I can find so many plugins for full fling this requirement. But my problem… [Read More]
Install Laravel via composer
Contents
Laravel:
This article is about one of the new PHP Framework Laravel. It is for me the best framework to develop any kind of web application. So let take an overview about Laravel Framework.
It is a free, open source PHP framework by following the MVC (model–view–controller) pattern.
Install Laravel via composer:
Laravel depends on a lot of external packages for its functionality, by using Composer as a dependency manager and utilizes Composer for installation and dependency management.
Step1: Install Composer
Some System Requirements for composer:
Composer requires PHP 5.3.2+ to run. Some sensitive php settings are also required, but when using the installer, you will be warned about any incompatibilities.
First check if composer already installed. Open command line and type “composer” and press enter if it’s already installed it will show Composer information.
1 |
composer |
if composer already installed and old more than 30 days, then run below command “composer self-update” this will update your composer.
1 |
composer self-update |
If composer is not installed. Let’s start by installing Composer.
Using the Installer on windows#
This is the easiest way to setup Composer on your system.
Download and run Composer-Setup.exe. It will install the latest Composer version and set up your PATH so that you can just call composer from any directory in your command line.
Download composer for window on below link
Download Composer for Windows
Check composer installation by running “composer” command on command line after that move to directory where you want to create Laravel project.
it’s extremely easy to get a new laravel project set up. There is no more downloading for it, now all you have to do is run following commands to create projects:
Step2:
1.Create specific version of laravel project by running following command
1 |
composer create-project laravel/laravel phpclicks 4.2 --prefer-dist |
2.Create latest version of laravel project by running following command
1 |
composer create-project laravel/laravel phpclicks --prefer-dist |
This command will download and install a fresh copy of Laravel in phpclicks folder.
Step3:
Move control to your project directory by running below command
1 |
cd phpclicks |
Step4:
Run below command to up your laravel project
1 |
php artisan serve |
it will show below URL if it’s up successfully.
Run above URL in browser and you will see the laravel home page.