diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b118672 --- /dev/null +++ b/composer.json @@ -0,0 +1,17 @@ +{ + "name": "webtechnick/cakephp-fileupload", + "description": "WebTechNick's file upload plugin.", + "type": "cakephp-plugin", + "keywords": ["cakephp", "upload", "webtecknick"], + "homepage": "https://github.com/webtechnick/CakePHP-FileUpload-Plugin", + "authors": [ + { + "name": "WebTechNick", + "homepage": "http://www.webtechnick.com", + "role": "Author" + } + ], + "extra": { + "installer-name": "FileUpload" + } +} diff --git a/readme.markdown b/readme.markdown index 1b9e1c8..26916ad 100644 --- a/readme.markdown +++ b/readme.markdown @@ -5,11 +5,25 @@ * BLOG ARTICLE: # INSTALL - +## Git clone clone into your `app/plugins/file_upload` directory git clone git://github.com/webtechnick/CakePHP-FileUpload-Plugin.git app/plugins/file_upload +## Composer +Alternatively, use composer package management. Add the following to your composer.json file's repositories/require sections: + + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/webtechnick/CakePHP-FileUpload-Plugin.git" + } + ], + "require": { + "webtechnick/cakephp-fileupload": "dev-cakephp2.0" + } + +And run `composer install`. # CHANGELOG: * 6.1.1: Fixed a bug that would not display an image if the source image is the same width as the resize image requested. @@ -311,4 +325,4 @@ At any time you can remove a file by using the `$this->FileUpload->removeFile($n } } } - ?> \ No newline at end of file + ?>