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

Install instruction does not work: composer require socialweb/atproto #19

Open
cycle20 opened this issue Jan 23, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@cycle20
Copy link

cycle20 commented Jan 23, 2024

Hello,

Thank you for this package.
The composer command requires something more specific to install atproto package.

$ composer require socialweb/atproto

In PackageDiscoveryTrait.php line 332:
                                                                                                                               
  Could not find a version of package socialweb/atproto matching your minimum-stability (stable). Require it with an explicit  
   version constraint allowing its desired stability.

Only this version worked for me: composer require -W socialweb/atproto:dev-main
Did I miss something or the README.md is obsolete a bit?

Best regards,
Csongor

@cycle20 cycle20 added the question Further information is requested label Jan 23, 2024
@cycle20
Copy link
Author

cycle20 commented Jan 23, 2024

Maybe -W is not a good idea:

   Error 

  Class "Http\Discovery\Psr18ClientDiscovery" not found

  at vendor/socialweb/atproto/src/Api/Client.php:26
     2223public function __construct(
     24UriInterface | string $service,
     25private readonly ?PersistSessionHandler $persistSession = null,
  ➜  26private readonly Options $options = new Options(),
     27▕     ) {
     28$this->service = $service instanceof UriInterface
     29▕             ? $service
     30▕             : $this->options->uriFactory->createUri($service);

      +2 vendor frames 

  3   test.php:18
      SocialWeb\Atproto\Api\Client::__construct()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

1 participant