2012-12-09 6 views
2

새로운 작곡가 라이브러리 패키지를 만들려고합니다. 나는작곡가 phar 패키지를 찾을 수 없습니다.

composer.phar create-project xlix vendor/xlix/xlix 0.3

명령을 사용하여 composer.json 파일을 만들었습니다.

파일 시스템에서 composer.json 파일은 vendor/xlix/xlix 아래에 있고 테스트 목적으로는 vendor/xlix에 복사했습니다.

다음
{ 
    "name": "xlix/xlix", 
    "type": "library", 
    "description": "XLIX package", 
    "keywords": ["core"], 
    "homepage": "http://myhomepage", 
    "license": "GPL", 
    "authors": [ 
     { 
      "name": "Florian Kasper", 
      "email": "[email protected]" 
     } 
    ], 
    "require": { 
     "php": ">=5.2.4" 
    }, 
    "autoload": { 
     "psr-0" : { 
      "Xlix\\Bundle" : "lib/" 
     } 
    }, 
    "extra": { 
     "branch-alias": { 
      "dev-master": "1.0" 
     } 
    } 
} 

내가하려고 다음 명령을 :

git:(master) ✗ php composer.phar require xlix/xlix 
git:(master) ✗ php composer.phat require vendor/xlix 
... 

git:(master) ✗ php composer.phar install vendor/xlix 
git:(master) ✗ php composer.phar install xlix/xlix 
... 

때마다 동일한 출력 :

composer.json 파일 내용

는 다음과에서

Please provide a version constraint for the xlix/xlix requirement: * 
composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - The requested package xlix/xlix could not be found in any version, there may be a typo in the package name. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum-stability setting 
    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 

ROOTDIR/composer.json 파일 패키지가 등록됩니다. require 섹션에 있습니다.

"jms/security-extra-bundle": "1.2.*", 
"jms/di-extra-bundle": "1.1.*", 
"kriswallsmith/assetic": "1.1.*@dev", 
"xlix/xlix": ">=0.*" 

지금 나는 더 이상 무엇을 해야할지 모르겠다.

질문 :

내가이 만든 실수가 있습니까 아니면 내가 놓친 있나요?

답변

4

패키지는 파일 시스템이 아니라 인터넷에 있습니다.

이라는 패키지와 packagist에있는 패키지에 대해 기본적으로 검색기에서 does not exists을 검색합니다. 구성을 사용하여 패키지 저장소를 더 추가 할 수 있습니다. 자세한 내용은 the documentation을 참조하십시오.

따라서 작곡가와 함께 패키지를 요구하려면 xlix 디렉토리를 어딘가에 업로드해야합니다.


난 당신이 lxix 디렉토리에 뭘 하려는지 표시되지 않는 이유는 무엇입니까? lxix 패키지에 들어있는 이유는 무엇입니까? 같은 패키지에 포함시켜야하는 이유는 무엇입니까? 당신이 그 명령이하는 것과 작곡가가 어떻게 작동하는지 이해하지 못하는 것 같습니다. 아마도 자신의 문서 나 Composer에 대한 다른 튜토리얼 (예 : nettuts+의 튜토리얼)을 읽으면 작곡가에 대한 더 나은 이해를 얻을 수 있습니다.

+0

감사합니다. 답장을 늦게 보내서 미안해 –

관련 문제