Adding composer support

This commit is contained in:
Gregwar 2012-06-22 19:04:05 +02:00
parent b60430b788
commit a204bdc3f9
2 changed files with 36 additions and 0 deletions

View File

@ -44,8 +44,20 @@ $ git submodule add git://github.com/Gregwar/CaptchaBundle.git vendor/bundles/Gr
$ git submodule update --init $ 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 ### 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: Now you will need to add the `Gregwar` namespace to your autoloader:
``` php ``` php

24
composer.json Normal file
View File

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