29/09/2015
Steps to installing composer and laravel into xampp:
1. Open your php.ini file by locating directory ‘D:\xampp\php\’ and search for “pgsql” and Disable the extension by placing a semicolon in the beginning of the line.
;extension=php_pgsql.dll
also enable SSL extension by un-commenting this line. this will help in download composer setup files.
extension=php_openssl.dll
2. Finally now by running following command you can download composer to your environment. locate to folder where you want to install composer. like ‘D:\xampp\php\’.
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
3. Create a .bat file in php folder Where you have installed the composer
Now you can create a composer.bat file, C:\xampp\php\composer.bat and include the following code:
OFF
SET SUBDIR=%~dp0
php %SUBDIR%\composer.phar %*
4. Then change to htdocs folder to download laravel
cd..
Then paste this command
composer create-project laravel/laravel your-project-name --prefer-dist