작곡가를 사용하여 Zend Framework 2 프로젝트에 FirePHP를 추가하려고하는데 오류가 발생합니다.
내 OS가 Windows 인 7
나는 그것을 작동하게하는 방법 다음 시도 :Zend Framework 2에 작곡가를 사용하여 FirePHP를 추가하는 방법
내가 파일 composer.json 코드를 다음 추가 된 : 여기
"repositories": [{
"type": "vcs",
"url": "https://github.com/RobLoach/firephp-core"
}],
"require": {
"firephp/firephp-core": "dev-master" // Tried also: "firephp/firephp-core": "*"
}
은 내가 가진 오류는 다음과 같습니다
[RuntimeException]
Failed to clone http://github.com/RobLoach/firephp-core.git, git was not found, check that it is installed and in your PATH env.
나는 firephp pull request에서 찾은 코드를 따라 composer.json에 추가를 시도했습니다. :
"require": {
"firephp/firephp-core": "*"
}
하지만 위와 같은 오류가 발생합니다. 작곡가는 완전히 새로운 것입니다. 유용한 튜토리얼을 찾을 수 없으므로 아직 어떻게 작동하는지 모르겠지만 익숙해지기 위해 최선을 다하고 있습니다.
누군가 내가 잘못하고있는 것을 말할 수 있기를 바랍니다.
감사합니다.
편집 : @Seldaek 도움 덕분에 작동했지만 내 젠드 라이브러리 폴더가 삭제되었습니다. 젠드 폴더를 제거 막을 수있는 방법이
E:\xampp\htdocs\ZendSkeleton>php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing firephp/firephp-core (dev-master f60753a)
Cloning f60753a8dd7817e4da6bc73e0e717387a9a0866a
- Removing zendframework/zendframework (2.0.5)
Writing lock file
Generating autoload files
있습니까 : 여기
는 cmd를에서 로그입니까?
여기 내 전체 composer.json 파일입니다
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.*"
},
"require": {
"firephp/firephp-core": "dev-master"
},
"config": {
"bin-dir": "E:/xampp/htdocs/ZendSkeleton/"
}
}
응답 해 주셔서 감사합니다. msysgit을 다시 설치했는데 작동하기 시작합니다.하지만 제 젠드 라이브러리 폴더가 제거됩니다. 이유가 있습니까? 첫 번째 게시물을 더 자세히 편집했습니다. – user1409508
composer.json에서 require 블록을 덮어 썼습니다. 두 번 정의하면 두 번째 파일이 먼저 지워지고 zendframework는 더 이상 필요하지 않습니다. 첫 번째 요구 블록에 firephp/firephp-core 라인을 추가하고 두 번째 블록을 제거하면됩니다. – Seldaek
@ user1409508 bin-dir에 대해서도 "."을 사용할 수 있습니다. 현재 경로에 설치하려면 전체 경로를 입력하는 대신 컴포지션 설정이 자신보다 다른 컴퓨터에서 작동하지 않도록하십시오. – Seldaek