composer global require

1 개요[ | ]

composer global require
  • 새로운 패키지를 글로벌로 설치하는 composer 명령어
  • 요청한 패키지 정보를 /home/사용자명/.composer 폴더의 composer.json 파일에 기록하고, 해당 패키지를 설치한후 composer.lock 파일에 기록함
testuser@ubuntu:~$ composer global show
Changed current directory to /home/testuser/.composer
Composer could not find a composer.json file in /home/testuser/.composer
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
testuser@ubuntu:~$ composer global require hirak/prestissimo
Changed current directory to /home/testuser/.composer
Using version ^0.3.8 for hirak/prestissimo
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing hirak/prestissimo (0.3.8): Downloading (100%)         
Writing lock file
Generating autoload files
testuser@ubuntu:~$ composer global show
Changed current directory to /home/testuser/.composer
hirak/prestissimo 0.3.8 composer parallel install plugin

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}