Skip to content

Instantly share code, notes, and snippets.

@junichi11
Created October 3, 2012 11:33
Show Gist options
  • Save junichi11/3826498 to your computer and use it in GitHub Desktop.
Save junichi11/3826498 to your computer and use it in GitHub Desktop.
Composer template for CakePHP Plugin
{
"name": "vendor/plugin_name",
"type": "cakephp-plugin",
"description": "Moge Plugin for CakePHP",
"keywords": ["cakephp","moge"],
"homepage": "https://github.com/yousername/your_plugin",
"license": "MIT",
"authors": [
{
"name": "hoge moge",
"email": "[email protected]"
}
],
"require": {
"composer/installers": "*"
}
}
{
"require": {
"vendor/plugin_name": "dev-master",
"vendor2/hoge": "dev-master",
"junichi/moge": "dev-master"
},
"config": {
"vendor-dir": "Vendor"
}
}
{
"repositories": [
{
"type":"package",
"package": {
"type" : "cakephp-plugin",
"name" : "cakephp/search",
"version" : "2.1",
"dist": {
"url": "https://github.com/CakeDC/search/zipball/2.1",
"type": "zip"
},
"require":{
"composer/installers": "*"
}
},
"packagist": false
}
],
"require": {
"cakephp/search": "*",
},
"config": {
"vendor-dir": "Vendor"
}
}
{
"repositories": [
{
"type":"package",
"package": {
"type" : "cakephp-plugin",
"name" : "cakephp/debug_kit",
"version" : "2.2.0",
"source": {
"url": "git://github.com/cakephp/debug_kit.git",
"type": "git",
"reference": "master"
},
"require":{
"composer/installers": "*"
}
},
"packagist": false
},
],
"require": {
"cakephp/debug_kit": "*",
},
"config": {
"vendor-dir": "Vendor"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment