From 6187ddff10b08087dc964e621b0a4bc17c405627 Mon Sep 17 00:00:00 2001 From: David Albrecht Date: Sat, 7 Nov 2015 11:33:59 +0100 Subject: [PATCH 1/2] required composer installers This makes it possible to install the plugin to a custom location like the cakephp Plugin directory. For more information see: https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.*", From e91a878bef3c6efe78851f265ab80faa233c8b75 Mon Sep 17 00:00:00 2001 From: David Albrecht Date: Sat, 7 Nov 2015 11:43:45 +0100 Subject: [PATCH 2/2] extended README.md to include composer install --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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`.