samayo / country-json

A simple data of the world by country each in JSON format.
https://data.world/samayo
MIT License
1.07k stars 804 forks source link

composer fails #138

Closed jhernandis closed 4 years ago

jhernandis commented 4 years ago

I've tried to use in composer, but get next message:

[InvalidArgumentException]
  Could not find a matching version of package samayo/country-data. Check the package spelling, your version constraint and that the package is available in a stabili         ty which matches your minimum-stability (stable).

Then I added it manually to composer.json and tried to update, and get that:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package samayo/country-data 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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Anyone knows what happens? Thanks

samayo commented 4 years ago

Hi, sorry for causing you some problem. I do remember there was an issue with how my repo was named, specially the "json" part of the package name was causing conflict with the packagist registry. Apparently, composer/packagist does not accept a package name that ends with json because internally that namespace points to something like returning an API in json format.

So, I had decided to change it to country-data and then went back to country-json but I guess, I forgot to change the readme.

I will fix the readme, but I just tried composer require samayo/country-json and it is working.

You can use that, if you are still looking to install the repo.

Sorry for the wasted time this cause you. I will update it now and thank you for letting me know :)

jhernandis commented 4 years ago

Now works fine. Thanks.