Install Composer on Windows and WAMP Server

Composer is a dependency manager tool. Nowadays every other PHP package available out there is using composer for installing. Gone are the old days when developers use to require the required files for including a package. With composer you just need to add the package name in composer.json and composer will not only download the package for you but it can also automatically autoload the package for you.

In this tutorial we’ll learn how to install composer on Windows using WAMP server. Composer is available as an Windows installer on below url:
https://getcomposer.org/Composer-Setup.exe

Click on the above url to download the setup file. Just like any other exe file you can simply double click it and install it. During installation it will ask you the path to php.exe. Browse to the below path for the php.exe file
C:\wamp\bin\php\php{version}\php.exe
Here {version} is the version of PHP which varies depending upon when you installed WAMP.

Once that is done you’ll have to configure few things manually.

Enable php_openssl, php_curl, php_socket

Click on WAMP icon in the taskbar in bottom right. Then PHP->PHP Extensions and enable: php_openssl, php_curl, php_socket by clicking on them. Once you click on them a tick will appear against them indicating that these extensions are now enabled.

Enable openssl from php.ini

C:\wamp\bin\php\php{version}\php.ini
C:\wamp\bin\apache\Apache{version}\bin\php.ini
In the above two php.ini file change

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

to

What we have done is enabled openssl extension by uncommenting (removing ;) the above line. Incase the above line are already uncommented you don’t need to do anything.

Save the file and restart your WAMP server for the changes to take effect.

That’s it. Composer should now be installed on your system. To test it type composer in command prompt and you should see something like below
install-composer-on-windows-and-wamp.png

[출처] http://perials.com/install-composer-on-windows-and-wamp/

 

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
118 ReactPHP Series 졸리운_곰 2020.07.01 79
117 Building a RESTful API Using ReactPHP and MySQL file 졸리운_곰 2020.07.01 1774
116 [PHP 웹개발] MySQL 데이터베이스에서 mysqli(MySQL Improved) 사용법 졸리운_곰 2020.05.07 68
115 PHP 파일 업로드와 다운로드 만들기 file 졸리운_곰 2020.05.07 423
114 HOW TO INTEGRATE R WITH PHP : php와 R 언어의 연동 file 졸리운_곰 2020.05.05 291
113 XAMPP, PhpStorm, Hello World 출력하기 졸리운_곰 2020.03.27 68
112 Pico is a stupidly simple, blazing fast, flat file CMS. file 졸리운_곰 2020.03.19 54
111 directorylister php 사용법 file 졸리운_곰 2020.03.18 153
110 flat file 플랫파일시스템 : GRAV CMS file 졸리운_곰 2020.03.18 91
109 내가 본 워드프레스 핵심 구조 및 기능 (Wordpress Architecture and Function) file 졸리운_곰 2020.02.20 54
108 [php machine learing] 회귀 분석 phpml 졸리운_곰 2020.02.06 132
107 [php machine learning] PHP-ML을 이용한 분류 졸리운_곰 2020.02.06 193
106 PHP-CRUD-API [mysql 및 데이터베이스 자동 미들웨어(middleware) by php] file 졸리운_곰 2020.01.25 105
105 Docker를 이용하여 멀티플랫폼에서 MSSQL + Laravel을 개발해보자. file 졸리운_곰 2020.01.23 348
104 PHP 기반의 Micro Frameworks 정리 졸리운_곰 2019.11.19 61
103 Micro-Framework, Lumen 살펴보기 file 졸리운_곰 2019.11.19 41
102 라라벨-루멘-PHP 날코딩 성능 비교 file 졸리운_곰 2019.11.19 146
101 Using WordPress with Lumen 졸리운_곰 2019.11.06 146
100 Micro-Framework, Lumen 살펴보기 file 졸리운_곰 2019.11.05 87
99 PHP 로 guid(uuid) 만들기 졸리운_곰 2019.02.27 768
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED