Unleash/unleash-client-php

Could not find package unleash/unleash-client.

mlg404 opened this issue · 5 comments

Tried to install unleash on my project and getting this title error

Also, not found in packagist: https://packagist.org/search.json?q=unleash/unleash-client

Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:792  
 Composer\Command\InitCommand->findBestVersionAndNameForPackage() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:416
 Composer\Command\InitCommand->determineRequirements() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:163
 Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:281
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:113
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61
 require() at /usr/local/bin/composer:24

Got success installing this rikudou/unleash-sdk
But, got new error from php version

Problem 1
    - rikudou/unleash-sdk v1.1.180 requires php ^8.0 -> your PHP version (7.3.15) does not satisfy that requirement.
    - rikudou/unleash-sdk v1.1.174 requires php ^7.4 -> your PHP version (7.3.15) does not satisfy that requirement.
    - rikudou/unleash-sdk v1.1.173 requires psr/http-client-implementation ^1.0 -> no matching package found.
    - rikudou/unleash-sdk v1.1.080 requires php ^8.0 -> your PHP version (7.3.15) does not satisfy that requirement.
    - rikudou/unleash-sdk v1.1.074 requires php ^7.4 -> your PHP version (7.3.15) does not satisfy that requirement.
    - rikudou/unleash-sdk v1.1.073 requires psr/http-client-implementation ^1.0 -> no matching package found.
    - Installation request for rikudou/unleash-sdk ^1.1 -> satisfiable by rikudou/unleash-sdk[v1.1.073, v1.1.074, v1.1.080, v1.1.173, v1.1.174, v1.1.180].

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.

This package got recently migrated from the personal namespace to the official one and we're setting up the transition, the package is not available on composer yet but will be in a few days!

As for the error you got, you're missing psr/http-client-implementation - as mentioned in the README, you need some http client implementation, one option would be to use guzzlehttp/guzzle, another good option is using symfony/http-client and nyholm/psr7 (these two need to be installed together).

You also need to install some cache implementation, for example symfony/cache or cache/filesystem-adapter.

@mlg404 Can we close this issue?

@mlg404 Can we close this issue?

Yes! Thank you all