Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation via composer doesnt seem to work #2

Open
nikksan opened this issue Jun 14, 2018 · 1 comment
Open

Installation via composer doesnt seem to work #2

nikksan opened this issue Jun 14, 2018 · 1 comment

Comments

@nikksan
Copy link

nikksan commented Jun 14, 2018

Running composer require gentor/olx-api-client results in this error:

[InvalidArgumentException]
Could not find package gentor/olx-api-client at any version for your minimu
m-stability (stable). Check the package spelling or your minimum-stability

Screenshot:
olx-api-client

Composer version: 1.3.1

Edit: Cloning the project and running composer install works.

@matasarei
Copy link

matasarei commented Oct 6, 2019

This issue can be resolved by setting the stability level to dev in composer.json:

...
  "minimum-stability": "dev",
  "prefer-stable": true,
...

It allows you to install any package you need (even dev-master), but also will prefer more stable packages over unstable ones.

$ composer require gentor/olx-api-client
Using version dev-master for gentor/olx-api-client
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Downloading (100%)         
  - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)         
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)         
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)         
  - Installing gentor/olx-api-client (dev-master b68be8e): Cloning b68be8e110 from cache
Writing lock file
Generating autoload files

You can also fork the repo and use your own source instead:

...
  "repositories": [
    {
      "type" : "vcs",
      "url" :  "[email protected]:username/olx-api-client.git"
    }
  ],
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants