From a204bdc3f9655710e4b0574d112e23780b224dc5 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Fri, 22 Jun 2012 19:04:05 +0200 Subject: [PATCH] Adding composer support --- README.md | 12 ++++++++++++ composer.json | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 composer.json diff --git a/README.md b/README.md index 4f4965a..7b34b8c 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,20 @@ $ git submodule add git://github.com/Gregwar/CaptchaBundle.git vendor/bundles/Gr $ git submodule update --init ``` +***Using Composer*** + +Add the following to the "require" section of your `composer.json` file: + +``` + "gregwar/captcha-bundle": "1.0.0" +``` + +And update your dependencies + ### Step 2: Configure the Autoloader +If you use composer, you can skip this step. + Now you will need to add the `Gregwar` namespace to your autoloader: ``` php diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1b4df7e --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "gregwar/captcha-bundle", + "type": "captcha-bundle", + "description": "Captcha bundle", + "keywords": ["symfony2", "captcha", "bot", "visual", "code", "security", "spam"], + "homepage": "https://github.com/Gregwar/ImageBundle", + "license": "MIT", + "authors": [ + { + "name": "Grégoire Passault", + "email": "g.passault@gmail.com", + "homepage": "http://www.gregwar.com/" + } + ], + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "psr-0": { + "Gregwar\\CaptchaBundle": "" + } + }, + "target-dir": "Gregwar/CaptchaBundle" +}