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" +}