Skip to content

Instantly share code, notes, and snippets.

@mul14
Last active December 29, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mul14/7599875 to your computer and use it in GitHub Desktop.
Save mul14/7599875 to your computer and use it in GitHub Desktop.
CakePHP composer.json
{
"name": "cakephp-application",
"repositories": [
{
"type": "pear",
"url": "http://pear.cakephp.org"
}
],
"require": {
"pear-cakephp/cakephp": ">=2.4.0"
},
"config": {
"vendor-dir": "Vendor/"
},
"scripts": {
"post-install-cmd": [
"ln -sf ./Vendor/bin/cake ./cake",
"cp -r Vendor/pear-pear.cakephp.org/CakePHP/Cake/Console/Templates/skel/* ./",
"sed -i \"s/^.*define('CAKE_CORE_INCLUDE_PATH.*$/define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.APP_DIR.DS.'Vendor'.DS.'pear-pear.cakephp.org'.DS.'CakePHP');/\" webroot/index.php",
"echo \"require APP . '/Vendor/autoload.php';\" >> Config/bootstrap.php",
"echo \"spl_autoload_unregister(array('App', 'load'));\" >> Config/bootstrap.php",
"echo \"spl_autoload_register(array('App', 'load'), true, true);\" >> Config/bootstrap.php"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment