fabiang/xmpp

composer require fabiang/xmpp (error)

rhemandaddy opened this issue · 9 comments

Hello.
The following error is generated when I run composer require fabiang/xmpp

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

Problem 1
- The requested package fabiang/xmpp No version set (parsed as 1.0.0) could not be found.

Potential causes:

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

Installation failed, reverting ./composer.json to its original content.

Could someone help me ??

Did you try composer require fabiang/xmpp=^0.7?

I have the same error when I add the following code in my composer file.
"require": {
"fabiang/xmpp": "^0.7"
}
But When I replace "^0.7" by "" everything seems to work.
"require": {
"fabiang/xmpp": "
"
}

Something must be wrong with your environment. Are you using Toran Proxy or company internal Satis installation which maybe breaks the package?

When I run the following everything is ok:

$ composer require fabiang/xmpp
Using version ^0.7.0 for fabiang/xmpp
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals

  • Installing psr/log (1.0.2): Loading from cache
  • Installing fabiang/xmpp (0.7.0): Downloading (100%)
    fabiang/xmpp suggests installing psr/log-implementation (Allows more advanced logging of the xmpp > connection)
    Writing lock file
    Generating autoload files

Thanks a lot for your help. But I really dont know what's wrong. I checked my envorenment and now i have the following error.

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fabiang/xmpp 1.0.x-dev -> satisfiable by fabiang/xmpp[1.0.x-dev].
- Can only install one of: fabiang/xmpp[0.7.0, 1.0.x-dev].
- Installation request for fabiang/xmpp ^0.7.0 -> satisfiable by fabiang/xmpp[0.7.0].

Installation failed, reverting ./composer.json to its original content.

I am using the following composer.json (the one you provide)
https://github.com/fabiang/xmpp/blob/master/composer.json

thanks a lot

Btw you shouldn't use the composer.json provided by a project. The projects composer.json describes the projects dependencies and config. Of cause if your composer.json has the name project name in it like a package of a dependency you require, this lead of cause to naming conflicts and is terribly wrong ;)