나는 라이브러리를 개발했고 그것을 packagist에게 던지기로 결정했다. 내 composer.json
다음과 같은packagist를 통해 내 패키지를 다운로드 할 수없는 이유는 무엇입니까?
{
"name": "kamranahmedse/php-geocode",
"type": "library",
"description": "A wrapper around the Google Geocoding API to get different details such as latitude, longitude, country, city, district, postcode, town and street number regarding some specific address.",
"keywords": ["location", "address", "addresses", "google", "map", "maps", "gmap", "gmaps", "geocode", "geocoder", "geocoding"],
"homepage": "https://github.com/kamranahmedse/php-geocode",
"license": "MIT",
"authors": [
{
"name": "Kamran Ahmed",
"homepage": "http://kamranahmed.info",
"role": "Developer"
}
],
"autoload": {
"psr-0": {
"Geocode": "src/"
}
},
"require": {
"php": ">=5.2.0"
}
}
처럼 보인다 나는 https://packagist.org/packages/kamranahmedse/php-geocode에서 내 패키지를 호스팅하고 관련 자식 저장소는 https://github.com/kamranahmedse/php-geocode입니다. 이제는 내 패키지가 제대로 작동하는지 테스트하려면, 내가 한 것은 폴더를 만드는 것입니다. 그 폴더 안에 나는
{
"require": {
"kamranahmedse/php-geocode": "*"
}
}
을 포함하는이 간단한 composer.json
파일을 생성하지만 composer install
를 실행하려고 할 때마다, 나는 다음과 같은 오류 받고 있어요 :
Your requirements could not be resolved to an installable set of packages.
Problem 1 - The requested package kamranahmedse/php-geocode could not be found in any version, there may be a typo in the package name.
사람은 모양과 무엇을 참조하십시오 수를 I 내가 여기서 잘못하고있는거야? 나는 노력과 노력을했지만 오류를 발견 할 수 없기 때문에 이것은 packagist에 대한 첫 번째 패키지가 될 것이며 이전의 경험이 없습니다.
'작곡가는 "kamranahmedse/php-geocode = dev-master"를 요구합니다. 개발 마스터 브랜치를 가져와야하고 태그 나 릴리즈가 없습니다. –