diff --git a/README.md b/README.md index 1a083de..6140187 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,22 @@ In your `Plugin` directory type: git clone -b master git://github.com/robmcvey/cakephp-paypal.git Paypal ``` +_[Composer]_ + +```shell +composer require robmcvey/cakephp-paypal +``` + +in the `composer.json` file of your project add +``` +"extra": { + "installer-paths": { + "Plugin/Paypal": ["robmcvey/cakephp-paypal"] + } + }, +``` +The plugin will be installed in your Plugin directory. + ### Usage Make sure the plugin is loaded in `app/Config/bootstrap.php`. diff --git a/composer.json b/composer.json index e3e134e..3a5e887 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,8 @@ "type": "cakephp-plugin", "require": { "php": ">=5.2.8", - "ext-mcrypt": "*" + "ext-mcrypt": "*", + "composer/installers": "~1.0" }, "require-dev": { "phpunit/phpunit": "3.7.*",