yii-node-socket
yii-node-socket copied to clipboard
Broken dependency name
Error : oncesk/yii-node-socket dev-master requires oncesk/elephant.io * -> no matching package found
I have used all the package of your github, but the name in https://github.com/oncesk/elephant.io.git it's not the same like the composer.json of this project.
https://github.com/oncesk/elephant.io.git : wisembly/elephant.io https://github.com/oncesk/yii-node-socket.git : oncesk/elephant.io
i don't understand exactly why there is "oncesk/elephant.io" in this project (is a required, so if is not found the composer dont allow to install the package...)
work for me with this ugly config (shame on me i use Yii 1 version 2.0.0 of your project) :
{
"repositories" : [ {
"type" : "vcs",
"url" : "https://github.com/gplaza/yii-node-socket.git"
}, {
"type" : "vcs",
"url" : "https://github.com/oncesk/elephant.io.git"
}
],
"require" : {
"wisembly/elephant.io" : "dev-master",
"oncesk/yii-node-socket" : "2.0.0"
},
"scripts" : {
"post-install-cmd" : [
"php -r \"system('rm -fr '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/elephant.io');\"",
"php -r \"system('mv -f '.getcwd().'/vendor/wisembly/elephant.io '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/');\"",
"php -r \"system('rm -fr '.getcwd().'/vendor/wisembly');\""
]
}
}
Hi, sorry for this, i changed the name to oncesk/elephant.io, you can try to use dev-master.
Отправлено с моего Xiaomi
Сообщение от "gplaza [email protected]":
work for me with this ugly config (shame on me i use Yii 1 version 2.0.0 of your project) :
{ "repositories" : [ { "type" : "vcs", "url" : "https://github.com/gplaza/yii-node-socket.git" }, { "type" : "vcs", "url" : "https://github.com/oncesk/elephant.io.git" } ], "require" : {
"wisembly/elephant.io" : "dev-master", "oncesk/yii-node-socket" : "2.0.0" }, "scripts" : { "post-install-cmd" : [ "php -r "system('rm -fr '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/elephant.io');"", "php -r "system('mv -f '.getcwd().'/vendor/wisembly/elephant.io '.getcwd().'/vendor/oncesk/yii-node-socket/lib/vendor/');"", "php -r "system('rm -fr '.getcwd().'/vendor/wisembly');"" ] }
}
— Reply to this email directly or view it on GitHub.
hi, now as you can see https://github.com/oncesk/yii-node-socket/blob/master/composer.json i added right composer requirements, but in my case composer do not want clone from github, only if i adding repositories section into project composer.json it works fine
It's totaly normal, if the project is not register in https://packagist.org/ we must add a repositories section ...
ок, documentation was updated on github =) thank you for your help