Why can't I download my package through packagist?

Kamran Ahmed

I have developed a library and I decided to throw it to the packagist. My composer.json looks like the following

{
    "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"
    }
}

and I have hosted my package at https://packagist.org/packages/kamranahmedse/php-geocode and the associated git repository is https://github.com/kamranahmedse/php-geocode. Now to test if my package is working fine, what I did was create a folder. Inside that folder I created this simple composer.json file containing

{
    "require": {
        "kamranahmedse/php-geocode": "*"
    }
}

But whenever I try to run composer install, I'm getting the following error:

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.

Can anyone please have a look and see what I'm doing wrong here? I've been trying and trying but unable to find any errors as this would be my first package over packagist and I have no prior experience.

Kevin M Granger

I belive it's because you don't have any stable releases, and composer defaults to only downloading stable releases when * is specified.

Either change your version specification to dev-master or set your minimum-stability to dev.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Why can't I install this package?

分類Dev

why can't I download artifacts from JFrog repository?

分類Dev

Why can't I select cells in my WPF datagrid?

分類Dev

Why can't I use my column alias in WHERE clause?

分類Dev

Why can't I extend my desktop 12.04 in KDE?

分類Dev

Why can't I crash my system with a fork bomb?

分類Dev

Why can't I see remote video in my WebRTC app?

分類Dev

Why can't I open my txt file in Ubuntu?

分類Dev

Why can't I access my objects member variable?

分類Dev

Can I see why apt-get install -f is removing my package?

分類Dev

A random Debug came up in my package.json in visual studio that I can't get rid of

分類Dev

Weird examples in javascript, why I can't reassign a global variable's value through a function's parameter?

分類Dev

Why once changed select value though javascript button, I can´t choose select value through html?

分類Dev

Why is my javascript function not being invoked for simple MVC tutorial? Why can't I debug either?

分類Dev

Why can't I copy a large number of files to my USB flash drive?

分類Dev

Why can't I match the last part of my regular expression in python?

分類Dev

Why can't I add static files in my django project when other static files are available in sources?

分類Dev

Why can't I define my variable with bracket notation in Angular 2

分類Dev

Why can't I put more then one dot in my JS calc

分類Dev

Why I can't use my classes from Models folder in Global.asax.cs?

分類Dev

Why, I can't update my react app hosted on Digital Ocean?

分類Dev

Why can't I access my JavaScript array by index outside of the d3 then function?

分類Dev

Why can't I find my express code at AWS EB'S EC2 instance?

分類Dev

Why can't I add the newtonsoft.Json.dll ref to my project?

分類Dev

Why can't I set a static IP address for my Linux box?

分類Dev

Why can't I see my USB drive during Windows 7 installation?

分類Dev

Why can't I access my private variable inside a function in PHP?

分類Dev

Why can't I parse the html result returned by my MVC partial view?

分類Dev

why I can't access my 3rd level CoreData data in swift?

Related 関連記事

  1. 1

    Why can't I install this package?

  2. 2

    why can't I download artifacts from JFrog repository?

  3. 3

    Why can't I select cells in my WPF datagrid?

  4. 4

    Why can't I use my column alias in WHERE clause?

  5. 5

    Why can't I extend my desktop 12.04 in KDE?

  6. 6

    Why can't I crash my system with a fork bomb?

  7. 7

    Why can't I see remote video in my WebRTC app?

  8. 8

    Why can't I open my txt file in Ubuntu?

  9. 9

    Why can't I access my objects member variable?

  10. 10

    Can I see why apt-get install -f is removing my package?

  11. 11

    A random Debug came up in my package.json in visual studio that I can't get rid of

  12. 12

    Weird examples in javascript, why I can't reassign a global variable's value through a function's parameter?

  13. 13

    Why once changed select value though javascript button, I can´t choose select value through html?

  14. 14

    Why is my javascript function not being invoked for simple MVC tutorial? Why can't I debug either?

  15. 15

    Why can't I copy a large number of files to my USB flash drive?

  16. 16

    Why can't I match the last part of my regular expression in python?

  17. 17

    Why can't I add static files in my django project when other static files are available in sources?

  18. 18

    Why can't I define my variable with bracket notation in Angular 2

  19. 19

    Why can't I put more then one dot in my JS calc

  20. 20

    Why I can't use my classes from Models folder in Global.asax.cs?

  21. 21

    Why, I can't update my react app hosted on Digital Ocean?

  22. 22

    Why can't I access my JavaScript array by index outside of the d3 then function?

  23. 23

    Why can't I find my express code at AWS EB'S EC2 instance?

  24. 24

    Why can't I add the newtonsoft.Json.dll ref to my project?

  25. 25

    Why can't I set a static IP address for my Linux box?

  26. 26

    Why can't I see my USB drive during Windows 7 installation?

  27. 27

    Why can't I access my private variable inside a function in PHP?

  28. 28

    Why can't I parse the html result returned by my MVC partial view?

  29. 29

    why I can't access my 3rd level CoreData data in swift?

ホットタグ

アーカイブ