Hi I am trying to setup a project using composer. I am able to install CakePHP but I am getting a hard time installing cakephp/debug_kit on a custom direcoty. I am trying to install it on "vendor/cakephp/cakephp/app/Plugin/DebugKit/" because CakePHP require its plugins to be installed on the Plugin directory of its "app" folder.
I already setup my composer.json according this site but still the plugin get installed on "vendor/cakephp/debug_kit"
Here is my composer.json maybe there is something wrong with my code. I am just a newbie in using composer.json.
{ "name" : "notmii/pse", "repositories" : [{ "type": "package", "package": { "name" : "cakephp/cakephp", "version" : "2.3.5", "source" : { "type" : "git", "url" : "git://github.com/cakephp/cakephp.git", "reference" : "2.3.5" }, "bin" : ["lib/Cake/Console/cake"] } }, { "type": "package", "package": { "name" : "cakephp/debug_kit", "version" : "2.2.0", "source" : { "type" : "git", "url" : "https://github.com/cakephp/debug_kit.git", "reference" : "2.2.0" } } }], "extra": { "installer-paths": { "vendor/cakephp/cakephp/app/Plugin/DebugKit/": ["cakephp/debug_kit"] } }, "require" : { "php": ">=5.3", "cakephp/cakephp" : ">=2.3.5", "cakephp/debug_kit": "2.2.*" } }
Change your extra block to:
"extra":
{
"installer-paths":
{
"app/Plugin/DebugKit": ["cakephp/debug_kit"]
}
},
This worked for me.
If you want to add all plugins to app/Plugin
instead of defining custom path for each plugin, update your extra
block like this:
"extra": {
"installer-paths": {
"app/Plugin/{$name}/": ["type:cakephp-plugin"]
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With