Monday, February 8, 2016

How To Set Up PHP, Composer and Laravel


.
PHP, Composer and Laravel Installation

Setting up your computer for PHP frameworks development could be frustrating if the steps are not working. This tutorial aims to provide easy step-by-step guide to setup PHP frameworks such as Laravel.
This tutorial uses Rapid Extension Editor (REE) to modify Windows Environment Path values.
Download here.

1) Download PHP Package.

Download PHP Package from http://windows.php.net/download#php-7.0 
or from cache.

2) Configure PHP.INI

Unzip the file into the computer eg C:\php.
Copy the php.ini-development into php.ini
Edit at the following two lines...
Ensure that the extension directory is set to ext
Uncomment the openssl directive
Add the PHP Path value to Windows (using REE)
Click Save button.
Run Windows Command (ie Press Windows Button, type cmd and press ENTER).
Type php --version.
Type php -r "echo OPENSSL_VERSION_NUMBER;"

3) Install composer

Let’s say we want to install composer at c:\composer
Change directory to C:\ (type cd \).
Type mkdir composer.
Change directory to composer (type cd composer)
Type php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
We are going to create a composer batch file so that we can call composer from any directory. Type echo @php "%~dp0composer.phar" %*>composer.bat
Add the Composer Path value to Windows (Using REE).
Click Save button.
Run a new Windows Command.
Type composer -V

4) Install Laravel

While in Windows Command, type composer global require "laravel/installer".
A folder named “laravel” has been created in C:\users\{your-username}\AppData\Roaming\Composer\vendor
By right, Laravel executable file is located in c:\users\{your-username}\AppDate\Roaming\Composer\vendor\bin\.
You can test this by going to the path and type laravel.
Copy this path value for the next step
Add Laravel Path value to Windows (Using REE)
Test again in a new Windows Command.

5) Remove Laravel

While in Windows Command, type composer global remove "laravel/installer"
Since you have removed laravel, don’t forget to delete the path value in Windows as well.
.

6 comments:

  1. Woah this blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.
    python Training institute in Pune
    python Training institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  2. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Data Science course in Indira nagar
    Data Science course in marathahalli
    Data Science Interview questions and answers
    Data science training in tambaram
    Data Science course in btm layout
    Data science course in kalyan nagar

    ReplyDelete
  3. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Best Devops Training in pune
    Devops Training in Bangalore
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  4. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing
    seo services in UK
    web design development company in UK
    graphic design
    angularJs developer in london

    ReplyDelete

Labels